日期:2014-05-18  浏览次数:20448 次

请问Server Error in '/' Application怎么解决?
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>
 
该问题怎么解决???

------解决方案--------------------
你的程序出现了错误,现在的你看到的错误提示是告诉你,当出错的时候,你该如果显示你的错误,比如说出错的时候,自动跳转到一个页面, 比如说出错的时候,只在本地机器显示你看到的具体错误信息
你应该去配置,显示出具体的错误信息,这样才知道错误在那里
仔细看懂这段英文,你就明白了
------解决方案--------------------
上面的说的有点问题,应该是你进行上面说的设置后,就可以远程查看真正的错误信息!你现在出现的错误信息没有太大意义
------解决方案--------------------
<configuration> 
<system.web> 
<customErrors mode="On"/> 
</system.web> 
</configuration> 
  
改成On,看看出了什么错误

系统发布后要改成
 <system.web> 
<customErrors mode="RemoteOnly" defaultRedirect="友好的错误提示页面.html"/> 
</system.web>