Server Error in '/' Application.Runtime Error怎么解决啊!

tanwei47045 2010-04-23 01:41:38
我的系统是WINDOWS 2000 IIS 5.0 发布网站后访问浏览.
就会出现
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.

Details: To enable the details of this specific error message to be viewable on the local server machine, 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 "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly"/>
</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="On" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

请高手给小弟支支招啊.~感激不尽
复制的就不要来了.~
...全文
919 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wycs_1009 2012-06-20
  • 打赏
  • 举报
回复
我现在也遇见这种问题,不知道是怎么回事,配置信息都看了好几遍了!
wo1369 2010-05-31
  • 打赏
  • 举报
回复
我也遇到了,还没解决问题
我顶一下
nosuchtracter 2010-04-23
  • 打赏
  • 举报
回复
这个表示程序出错了
因为你把custom error给off了。所以你是看不到错误的。
你在web.config里面,看下<customErrors mode="On" 是不是为on

或者远程到服务器上,进行在服务器上浏览页面,就可以看到具体错误了

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧