Why can't i see a detailed error message in this aspx page?

落爺英雄遲暮 提交于 2019-12-05 01:33:51

To see the error you need customErrors off, like this:

<customErrors mode="Off"></customErrors>

From the docs, here are the options for the mode attribute:

  • On - Specifies that custom errors are enabled. If no defaultRedirect attribute is specified, users see a generic error. The custom errors are shown to the remote clients and to the local host.
  • Off - Specifies that custom errors are disabled. The detailed ASP.NET errors are shown to the remote clients and to the local host.
  • RemoteOnly - Specifies that custom errors are shown only to the remote clients, and that ASP.NET errors are shown to the local host. This is the default value.

Warning

Setting Off on a live-production site is very risky as some error messages might compromise sensitive data on your site (like code and paths maybe even passwords).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!