思辨文化 - specul.com

思辯、思辨、思變
欢迎光临 思辨文化 - specul.com 登录 | 注册 | 帮助
位于 搜索

Disable Friendly Error Messages

本主题共有 0 篇回复,最新回复发表于 10-02-2009 22:45,作者 life
页 1 / 1 (1 项)
帖子排序: 上一主题 下一主题
  • 10-02-2009 22:45

    • life
    • 灌水10强
    • 注册时间 04-25-2007
    • 发帖总数 50

    Disable Friendly Error Messages

    If you cannot retrieve the error from the Control Panel's Exceptions Log, you can disable friendly error messages by editing the web.config file.  To collect the error by disabling friendly error messages,

    1.Edit the web.config file in the root of your site
    2.Edit the <customErrors> node in the web.config file and change mode="RemoteOnly" to mode="Off".  Be sure to match the text case shown here ("off" is not equivelent to "Off")
    3.Save the web.config file.
    4.Reproduce the error by accessing the site.

    The underlying error message should now be shown when the error is reproduced.  When you have reproduced the error, you may want to restore mode="RemoteOnly" in the web.config file.

    标签:
页 1 / 1 (1 项)