web.config中的customErrors模式 [英] Web.config customErrors mode

查看:320
本文介绍了web.config中的customErrors模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个的Web.Config很大的问题,我要看看我的网页的错误,并在asp.net web表单和Web配置解决它,但是当发生错误,我看到另一个错误,我看到以下内容:


  

的customErrors模式设置为关上或仅限远程,


我设置该属性关闭,但不显示错误,并再次说,请设置属性在您CustomError。

当我设置模式为ON,说请设置的customErrors模式重新打开。


解决方案

  

当您遇到配置问题,请确保您的
  设置不被覆盖。


在这种情况下,您的服务器可能有一个配置<部署的零售=真/> 重写应用程序设置和禁用跟踪输出,自定义错误,调试能力。

将值更改为假

 <部署零售=FALSE/>

MSDN链接

I have a great problem with Web.Config, I need to see 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:

customErrors mode to Off or On Or RemoteOnly,

I set this property Off, but do not show error and say again please set attribute to On your CustomError.

when I set mode to On,say Please set customErrors mode to On Again.

解决方案

When you're having issues with configuration, make sure that your settings isn't overridden.

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.

Change the value to "false"

<deployment retail="false" />

MSDN Link

这篇关于web.config中的customErrors模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆