本机以及发布网站都运行过没事  但是一传到服务器就后 打开这个页面的时候 不显示页面报错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.   

      你打开WEB.CONFIG的错误提示
      

  2.   

    你的程序发生了错误,但是IIs网站配置为不在远程显示错误信息(为了安全)。

    提示你修改配置文件的地方,这样就可以显示出错误信息了。
    另外,还可以修改配置文件,当出现程序错误时,自动转入错误提示页面。
    这个也在配置文件中指出了在哪儿修改。
      

  3.   

    饿....修改了 Web.Config  多余的东西都删了  就剩下了标签就好了....