网站放到2003服务器上,偶尔报Runtime Error 错误,为什么?

一路奔跑1314 2012-03-06 05:40:52
我写的一个网站,放到服务器上后,有时候在打开访问时报Runtime Error 错误,但是什么不用改,过一会就好了,可以访问了,这是为什么呢?
报错具体信息为:
Server Error in '/zrb' 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>



...全文
135 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
一路奔跑1314 2012-03-07
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 porschev 的回复:]
web.config中找到customErrors节点

设置成

<customErrors mode="Off"/>
[/Quote]
现在又能访问了,等再次出现问题了我试下!
一路奔跑1314 2012-03-07
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 wang2129929 的回复:]
一般都在这里!HKEY_LOCAL_MACHINESOFTWAREmicrosoftWindowsCurrentVersionRun,在这里面搜runtime项,删掉,最多一分钟搞定
[/Quote]
能告诉我为什么在注册表删除runtime这个键值吗?我总不能在服务器上就直接删除这个键值吧!大侠,能说下原因吗?谢谢!
porschev 2012-03-07
  • 打赏
  • 举报
回复

web.config中找到customErrors节点

设置成

<customErrors mode="Off"/>
卷泥巴重来 2012-03-07
  • 打赏
  • 举报
回复
新建个应用程序池,再把版本改为2.0试试
  • 打赏
  • 举报
回复
一般都在这里!HKEY_LOCAL_MACHINESOFTWAREmicrosoftWindowsCurrentVersionRun,在这里面搜runtime项,删掉,最多一分钟搞定
  • 打赏
  • 举报
回复
注册表问题。 你去注册表找Runtime 删除。 试试 。
一路奔跑1314 2012-03-07
  • 打赏
  • 举报
回复
昨天下午出现的情况,今天早上就好了,现在就出现老问题了!
期待大家来解决--------------
一路奔跑1314 2012-03-07
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 gzw13999 的回复:]
眼熟的问题。 应用程序池或者权限问题吧。
[/Quote]
那为什么过一会网站又能访问了呢?能不能把原因说下!如何防止这种事情发生?
gzw13999 2012-03-06
  • 打赏
  • 举报
回复
眼熟的问题。 应用程序池或者权限问题吧。

62,046

社区成员

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

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

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

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