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

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>

------------------------------
上传到服务器上一天要出现几次这样的错误,重启一个服务器就好了,用不了多久又有问题,这个问题到底是怎么回事呢?
服务器是win2003的
在网上找了一下,说什么创建虚拟目录先???win2003直接就是创建网站啊

这个问题到底是什么问题呢?

------解决方案--------------------
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> 

先问问你的系统出了什么问题再来这里问...说不清症状哪儿来的什么解决方案...
------解决方案--------------------
帮顶

关注
------解决方案--------------------
we.config 重复了

比如你在iisroot下有一个web.config,然后在你的虚拟目录下,你又搞了一个asp.net的程序,也有一个web.config,这个时候就冲突了

这种问题仅存在于asp.net 1.0 1.1上面,2.0就没这种问题。


你是用了1.1开发的吗?如果是的话只能另外搞一个站点了,或者把所在虚拟目录上级的web.config移掉
------解决方案--------------------
探讨
帮顶

关注

------解决方案--------------------
这段话的意思是...出了问题,出什么问题呢,不告诉你...你需要修改web.config...将<customErrors>标记中的mode属性改为Off才知道...

初学.net没关系...但是还要学点别的...例如英语...
------解决方案--------------------
<customErrors mode="RemoteOnly">改为<customErrors mode="Off"/> 

------解决方案--------------------
一个病人去买药,大夫问他买什么药,他只说,我要买药。
如此而已。
------解决方案--------------------
探讨
引用:
帮顶