加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – 处理您的请求时发生异常.此外,执行自定义错误页面时

发布时间:2020-12-16 06:27:30 所属栏目:asp.Net 来源:网络整理
导读:Server Error in ‘/’ Application. Runtime Error Description: An exception occurred while processing your request. Additionally,another exception occurred while executing the custom error page for the first exception. The request has been

Server Error in ‘/’ Application.

Runtime Error

Description: An exception occurred while processing your request. Additionally,another exception occurred while executing the custom error page for the first exception. The request has been terminated.

上面的错误现在发生在我的PROD上.回收应用程序池可以解决问题,但几天之后,同样的错误再次出现.我确实浏览了这个主题的其他帖子相关,但似乎总是为他们发生这个错误,这对我来说是不一样的.

解决方法

错误页面上存在服务器错误,因此错误页面会尝试重定向到错误页面.为避免无限循环,请求终止.

使用HTML错误页面,而不是.ASPX页面.

禁用自定义错误也会“修复”此问题,但是,您不希望在生产中执行此操作.

您还可以使用ELMAH记录异常,然后解决问题.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读