时时商务社区

标题: 解决方法:An error occurred on the server when processing the URL. Please contact the [打印本页]

作者: 网络通达    时间: 2018-2-18 04:36

                      在WINDOWS7或SERVER2008上安装了IIS7.5,调试ASP程序时出现以下错误:
    An error occurred on the server when processing the URL. Please contact the system administrator
    解决方法如下:

[color=]    设置方法一:

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

[color=]    设置方法二:

    打开IIS7的
[color=]asp设置
,展开“
[color=]调试属性
”选项,“
[color=]将错误发送到浏览器
”这项默认的是
[color=]False
,改为
[color=]True
,然后点右侧的应用!如图所示:
600)makesmallpic(this,600,1800);' src="http://www.mycodes.net/upload_files/article/78/201104/1_20110407120408_jyy5x.jpg" width="760" height="576" border="0" />
    通过以上设置后,再从浏览时打开出错ASP页面时就能看到页面出错的详细信息,方使调试。如果是公开的Web服务器建议不要打开此选项,以防出错信息被他人利用。





欢迎光临 时时商务社区 (http://bbs.4435.cn/) Powered by Discuz! X3.2