Server Error in '/' Application.
--------------------------------------------------------------------------------Runtime Error 
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File --><configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
 Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File --><configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
 

解决方案 »

  1.   

    到服务器上用localhost打开看一下错误信息
      

  2.   

    把Web.config文件加上如下配置,
    <configuration> 
         <system.web> 
             <customErrors mode="Off" defaultRedirect="mycustompage.htm"/> 
         </system.web> 
    </configuration> 应该会显示出详细的错误信息的。
    注意以上代码不要被注释
      

  3.   

    服务器不是在本地,没有办法用localhost测试,
    web.config文件我找不到啊,可以告诉我在什么地方,可以找到这个文件吗!
      

  4.   

    服务器运行出错,你的运行账户没有调试权限,不能显示错误,asp.net 用户给个权限试试,如果是2000,iis_user
      

  5.   

    我也经常出现这样的问题,有是iis下装的有两个版本,有。net fromework1.1 和2.0   要是不行的话把这两个来回换一下就会好了。
       具体什么原因我也说不了。我就是这样弄的。