阅读背景:

有没有办法以编程方式检查ASP.NET应用程序的CustomErrors是否设置为Off?

来源:互联网 

We usually catch unhandled exceptions in Global.asax, and then we redirect to a nice friendly error page. This is fine for the Live environment, but in our development environment we would like to check if CustomErrors are Off, and if so, just throw the ugly error.We usually catch unhandled exceptions in Global




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: