日期:2014-05-17  浏览次数:20424 次

Runtime Error 问题 求大神啊

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> 

重启完IIS或者重新注册freamwork后暂时可以,可过一会又报这个错误了。很频繁啊。大神有解决办法么?谢谢了。因为是有时候行有时候不行,所以我感觉程序该没啥问题。
?Runtime?Error

------解决方案--------------------
 <customErrors mode="Off"/>


你把customErrors mode设成off   看看报错信息是啥?
------解决方案--------------------
 <customErrors mode="Off"/>
改成
 <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

再看看有什么错没?
------解决方案--------------------
引用:
Quote: 引用:

跟外网有什么关系?

你把webconfig的<customErrors mode="Off"/> 你把customErrors mode设成off 
这样就能显示具体的错误了


进不去服务器 哥哥。我知道你说的啥意思。


这真没法分析啥错了
------解决方案--------------------