问题描述
我在使用Web.Config时遇到了一个非常重要的问题,我需要查看页面错误并以asp.net Web表单和Web配置来解决它,但是当发生错误时,我看到了另一个错误,我看到了消息:
I have a great and important problem with Web.Config, I need to see the Error of my page and resolve it in asp.net web form and web config, but when Error Occurred, I see another error and I see this Message :
我将此属性设置为关闭",但不显示错误,请再说一遍,请将属性设置为您的CustomError".
I set this property Off, but do not show error and say again please set attribute to On your CustomError.
当我将模式设置为开"时,请说请再次将customErrors模式设置为开".
when I set mode to On,say Please set customErrors mode to On Again.
推荐答案
在这种情况下,您的服务器可能具有配置<deployment retail="true" />
,该配置将覆盖应用程序设置并禁用跟踪输出,自定义错误和调试功能.
In this case, your server might have a configuration <deployment retail="true" />
that overrides application settings and disables trace output, custom errors, and debug capabilities.
将值更改为"false"
Change the value to "false"
<deployment retail="false" />
MSDN Link
这篇关于Web.config自定义错误模式冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!