确认一下KT\ASPNET的权限。
包括组和对目录、数据库的权限。

解决方案 »

  1.   

    痛苦,将asp.net变成administrator呢
      

  2.   

    在SQL server的安全性登录设置中加入用户'KT\ASPNET' 即可。
      

  3.   

    asp.net变成administrator,应该就行了。
      

  4.   

    点击工程的属性,把Debug一栏中的“ASP debug”给设为False,VS.NET对ASP调试时需要验证身份,一般调试ASP.NET不会打开这一设置,但我遇到好几次调试时不知怎么回事自动打开了。
      

  5.   

    什么叫“asp.net变成administrator”,我也遇到过这个问题,到底应该怎么办呢?
      

  6.   

    Locate machine.config (try C:\WINNT\Microsoft.NET\Framework\v1.0.3705\CONFIG). 
    Open machine.config in Notepad or other text editor. 
    Search for this string: "<processmodel" 
    In the processModel element, change userName="machine" to userName="SYSTEM"   //这个有些出入,我实际的操作是allowDefinition="MachineToApplication"
    Save the file and exit. 
    In the Run box (Start > Run) execute this command: iisreset.exe .
      

  7.   

    其实这个问题是因为数据库的权限出了问题,去数据库中重新给aspnet附一下权限就可以了。
      

  8.   

    我后来也想过,可能是数据库的权限的问题,
    不过现在解决了,谢谢大家的参与。
    我还有个问题,我在对datagrid进行分页的时候,
    运行的时候出现“无效的 CurrentPageIndex 值。它必须大于等于 0 且小于 PageCount”,我用调试发现CurrentPageIndex是16进制的,怎么会这样呢
      

  9.   

    老大,很简单啊!是你的SqlAdapter中建立Connection的问题,因为你是用了系统默认账号,而不是使用了SA,很简单啊!!!
      

  10.   

    新建一个ASPNET的用户,然后给他多一点权限
      

  11.   

    Locate machine.config (try C:\WINNT\Microsoft.NET\Framework\v1.0.3705\CONFIG). 
    Open machine.config in Notepad or other text editor. 
    Search for this string: "<processmodel" 
    In the processModel element, change userName="machine" to userName="SYSTEM"   //这个有些出入,我实际的操作是allowDefinition="MachineToApplication"
    Save the file and exit. 
    In the Run box (Start > Run) execute this command: iisreset.exe .
    ============对,我试过了~~