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

急急急这是什么错误!
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 中加入 <pages enableEventValidation="true"/> 
或者在page中假如<%@ Page EnableEventValidation="true" %> 也可以.主要是.net 安全机制问题.只要你提交内容有脚本代码.默认都会包错.
2、
原因1: web.config 文件不完整.不是合格的asp.net 配置文件.
解决: 您要检查web.config 是否合格,有时候是粗心,xml文件不完整.导致的问题

原因2: asp.net版本问题.asp.net有asp.net 1.1和 asp.net2.0 两个版本.
解决: 请确定您网站asp.net需要 哪个版本支持.选择合适的服务器运行版本.我们默认是2.0的,如果需要升级到1.1请联系我们服务专员.


------解决方案--------------------
同意1楼的意见!

.net的安全机制必须考虑进去。
------解决方案--------------------
直接到你的IIS服务器中-》打开你的Websit --》选择一个.aspx 的页面,右键-》浏览, 如果页面可以正常显示,那么就是你的IIS中WebSite 的 目录安全性 里的 身份授权有问题。
如果不能正常显不页面,那么就是你的程序本身就有问题,debug 你的程序。
------解决方案--------------------
学习
------解决方案--------------------
楼上几位都是高手啊
------解决方案--------------------
楼上说的不是这么回事吧,这个错误提示是说真实的错误被关闭了,必须将 <customErrors mode="Off"/> 设置成Off,因为你现在的是RetmoteOnly,这样就可以看到具体错误信息了.
------解决方案--------------------
探讨
楼上几位都是高手啊

------解决方案--------------------
直接到你的IIS服务器中-》打开你的Websit --》选择一个.aspx 的页面,右键-》浏览, 如果页面可以正常显示,那么就是你的IIS中WebSite 的 目录安全性 里的 身份授权有问题。 
如果不能正常显不页面,那么就是你的程序本身就有问题,debug 你的程序。
------解决方案--------------------
先把customErrors改为Off,然后再看错误信息
------解决方案--------------------
这个节点我通常都不怎么用,学学
------解决方案--------------------
探讨
直接到你的IIS服务器中-》打开你的Websit --》选择一个.aspx 的页面,右键-》浏览, 如果页面可以正常显示,那么就是你的IIS中WebSite 的 目录安全性 里的 身份授权有问题。
如果不能正常显不页面,那么就是你的程序本身就有问题,debug 你的程序。