使用IIS7在调试程序的时候有可能遇到下面这样的错误提示:文章源自堕落的鱼-https://www.duoluodeyu.com/821.html
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.文章源自堕落的鱼-https://www.duoluodeyu.com/821.html
其实这是IIS7对ASP程序发送的一个脚本错误消息,只要是程序中有错误就会出现这样的错误提示,所以关键的一步是要将具体的错误显示出来,方法如下:文章源自堕落的鱼-https://www.duoluodeyu.com/821.html
1、打开控制面板→管理工具→Internet 信息服务(IIS)管理器→双击“ASP”图标,相关截图如下所示:文章源自堕落的鱼-https://www.duoluodeyu.com/821.html
文章源自堕落的鱼-https://www.duoluodeyu.com/821.html
2、在左边的窗口中找到你的网站,然后在右边的窗口中展开“调试属性”,把“将错误发送到浏览器”设为True即可,相关截图如下所示:文章源自堕落的鱼-https://www.duoluodeyu.com/821.html
文章源自堕落的鱼-https://www.duoluodeyu.com/821.html
此时你再运行ASP程序时就会看到具体的错误了,然后再根据错误提示进行相应的修改即可。文章源自堕落的鱼-https://www.duoluodeyu.com/821.html
tips:在IIS7中请将父路径启用,否则只要你用到了父路径就会出现上面的错误了,启用父路径的设置在上面第二步的地方,上图中已经标出来了。文章源自堕落的鱼-https://www.duoluodeyu.com/821.html
引用网址:http://www.htmer.com/article/599.htm文章源自堕落的鱼-https://www.duoluodeyu.com/821.html
2013年3月18日 21:00 1F
对使用IIS7的朋友很有帮助