分享你我的心得.
共乘一片美好网络.

IIS7.5 错误提示错误发生在服务器上处理时(win2008)

在WINDOWS 7上安装了IIS7.5,调试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

 

解决方法如下:

    设置方法一:

以管理员身份运行CMD,将目录定位到%windir%\system32\inetsrv\,然后执行appcmd set config -section:asp -scriptErrorSentToBrowser:true。

%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true

    设置方法二:

打开IIS7的asp设置,展开“调试属性”选项,“将错误发送到浏览器”这项默认的是False,改为True,然后点右侧的应用

通过以上设置后,再从浏览时打开出错ASP页面时就能看到页面出错的详细信息,方使调试。

同时也要把行为==》把“启用父路径” 的值设为 “true”

注意,上面的面板是在IIS根目录下,双击IIS,下面的ASP,然后把高度属性展开就可以看到把错误发送到浏览器的选项。

赞(0)
未经允许不得转载:小叶白龙博客 » IIS7.5 错误提示错误发生在服务器上处理时(win2008)
分享到: 更多 (0)

评论 23

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址