首页 > 常见问题 > 正文

An error occurred on the server when processing the URL的解决方法

2016-12-30 11:06:33   标签: windows7  

  在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,然后点右侧的应用!如图所示:

  

解决方法:An error occurred on the server when processing the URL. Please contact the system administrator

 

  通过以上设置后,再从浏览时打开出错ASP页面时就能看到页面出错的详细信息,方使调试。如果是公开的web服务器建议不要打开此选项,以防出错信息被他人利用。



关于我们

Copyright  ©  2012-2018 Tongyongpe.com All Rights Reserved. 通用PE工具箱 版权所有