IIS7下不显示ASP错误信息

| |
[不指定 2008/05/03 22:08 | by sunle ]
前些时候帮朋友调试一个ASP程序,因为新换用2008,自带的是IIS7任何ASP内部的错误都只显示下边两句:

引用
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

 上边两句第一句中的一段最为经典“Please contact the system administrator.”请联系系统管理员。其实下边那个here就是告诉你如何让错误信息显示出来的办法。
  这里我写出上边官方的解决办法,以便和我一样英文不好的朋友使用。
显示ASP错误信息:
%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true


不显示ASP错误信息:
%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:false


Tags: , ,

网站运营 | 评论(0) | 引用(0) | 阅读(450)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]