这是报的错误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.   

    <customErrors mode="Off"/>已经添加了,但是还是报这个错误
      

  2.   

    配置文件<?xml version="1.0" encoding="utf-8"?><configuration>
    <appSettings/>
    <connectionStrings>
    <add name="strConn" connectionString="~/App_Data/data.mdb"/>
    </connectionStrings>
    <system.web>
        <customErrors mode="Off"/>
    <compilation debug="false"> </compilation>
    <authentication mode="Windows" />
    <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
    <error statusCode="403" redirect="NoAccess.htm" />
    <error statusCode="404" redirect="FileNotFound.htm" />
    </customErrors>
    <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="1024000" executionTimeout="900"/>
    <globalization requestEncoding="gb2312" responseEncoding="gb2312"/>
    </system.web>
    </configuration>
      

  3.   

    请看下服务器上的IIS版本,和ASP.NET的版本号
      

  4.   

    <customErrors mode="Off"/><compilation debug="false"> </compilation>
    <authentication mode="Windows" /><customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
    <error statusCode="403" redirect="NoAccess.htm" />
    <error statusCode="404" redirect="FileNotFound.htm" />
    </customErrors> 
    添加了 两个 customErrors 标记
    这里有问题 
      

  5.   

    看下iis的配置框架是否正确!!
      

  6.   

    我的是asp.net2.0的,服务器上的iis是6.0的
      

  7.   

    项目生成网站,放到IIS上,注意看下asp.net 的版本!