为什么我的所有ASPX文件都成了文本文件格式?,而且用IE打开还是直接显示的代码,不是网页了!用VS.NET2003打开倒是可以浏览成网页,为什么?这样我在外面就不可以直接看了呀...昏了!
大家快帮帮吧..555!

解决方案 »

  1.   

    你需要在IIS中重新注册一下ASP.NET,运行:
    C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i
      

  2.   

    谢谢QIUJI!!
    能再问一个么?为什么提示:
    Exception Details: System.Data.SqlClient.SqlException: 用户 'CHINA\ASPNET' 登录失败。
    CHINA是我的机器名...不明白啊~
    连接字符串我是用WIN集成验证的,.,.
      

  3.   

    >>Exception Details: System.Data.SqlClient.SqlException: 用户 'CHINA\ASPNET' 登录失败。数据库连接串的问题,你可能配置为继承Windows身份验证了,在连接串里加入显式的用户名密码验证方式试试: ...user id=xxx;password=xxx;...试试看吧
      

  4.   

    Server Error in '/hotop100oa' Application.
    --------------------------------------------------------------------------------用户 'sa' 登录失败。 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: 用户 'sa' 登录失败。我装SQL的时候就是空密码啊...为什么...555
      

  5.   

    那就改一个非空的密码试试,例外,要注意SQLServer的身份验证方式,有Windows的集成验证方式,有SQLServer自身验证方式,还有就是两种混合的。你要确保使用了SQLServer自身的验证方式(或混合方式)。
      

  6.   

    server=localhost;database=hotop100;user id=sa;password=
    这样就提示SA登陆失败
    server=localhost;database=hotop100;Integrated Security=SSPI;" 
    这样又提示CHINA/ASPNET登陆失败..偶昏了
      

  7.   

    我刚查了下,发现我SQL数据库里没有CHINA/ASPNET这个角色啊
      

  8.   

    为什么!为什么问题一下子都来了!
    我在SQL里创建登陆用户,就死机了!昏了,这又为什么?5555
      

  9.   

    拒绝了对对象 'sysEmpLogin'(数据库 'hotop100',所有者 'dbo')的 EXECUTE 权限。 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: 拒绝了对对象 'sysEmpLogin'(数据库 'hotop100',所有者 'dbo')的 EXECUTE 权限。