今天把ASP程序部署到iis7,出现An error occurred on the server when processing the URL. Please contact the system administrator。
下面的解决办法:
解决方法如下:
设置方法一:
以管理员身份运行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页面时就能看到页面出错的详细信息,方使调试。如果是公开的Web服务器建议不要打开此选项,以防出错信息被他人利用。
在WINDOWS7或SERVER2008上安装了IIS7.5,调试ASP程序时出现以下错误:
An error occurred on the server when processing the URL. Please contact the system administrator
解决方法如下:
设置方法一:
以管理员身份运行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页面时就能看到页面出错的详细信息,方使调试。如果是公开的Web服务器建议不要打开此选项,以防出错信息被他人利用。

- 大小: 97.3 KB

- 大小: 97.3 KB
分享到:
相关推荐
解决方法:An error occurred on the server when processing the URL. Please contact the system administrator 在WINDOWS7或SERVER2008上安装了IIS7.5,调试ASP程序时出现以下错误: An error occurred on the ...
在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 ...
默认网页代码出错浏览器会出现“An error occurred on the server when processing the URL. Please contact the system administrator”。在 iis 的主页-->ASP -> 双击打开->调试错误-> 将错误发送到浏览器: True ...
在 WINDOWS7 或 SERVER2008 上安装了 IIS7.5,调试 ASP 程序时出现以下错误: An error occurred on the server when processing the URL. Please contact the system administrator。解决方法有两种: 1. 以管理员...
在IIS7中,默认情况下不会将详细的错误信息发送到客户端,这会导致只能看到一句脚本错误消息,例如:“An error occurred on the server when processing the URL. Please contact the system administrator.” 为了...