在IIS服务器中发布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
第三步:打开IIS7的asp设置,展开“调试属性”选项,“将错误发送到浏览器”这项默认的是False,改为True,然后点右侧的应用
第四步:重启本地服务IIS,然后再次放我localhost:8012/index.asp,错误消失,访问正常