发布于 2010-11-07 18:29:13
14楼
报错:An error occurred on the server when processing the URL. Please contact the system administrator.解决方法
二月 10, 2010 · Filed Under Microsoft
报错:An error occurred on the server when processing the URL. Please contact the system administrator.解决方法
情况描述:
在win7上用ASP连接SQL或者是Access数据库时出现问题。建立数据源时“选择你想为其安装数据源的驱动程序”就只有SQL Server驱动程序。报错: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.
解决方法
打开将错误发送到浏览器”changed the default for the “s criptErrorSentToBrowser” flag in IIS7”,将选项设置为True.
1,打开IIS7的asp设置,展开“调试属性”选项,“将错误发送到浏览器”这项默认的是False,改为True,然后点右侧的应用!
通过以上设置后,再从浏览时打开出错ASP页面时就能看到页面出错的详细信息,方使调试。如果是公开的Web服务器建议不要打开此选项,以防出错信息被他人利用。
2,以管理员身份运行CMD,将目录定位到%windir%\system32\inetsrv\,然后执行appcmd set config -section:asp -s criptErrorSentToBrowser:true。
%windir%\system32\inetsrv\appcmd set config -section:asp -s criptErrorSentToBrowser:true
学无止境