IIS出现:An error occurred on the server when processing the URL

2013年3月16日11:11:59网站建设1 508

使用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

 文章源自堕落的鱼-https://www.duoluodeyu.com/821.html

2、在左边的窗口中找到你的网站,然后在右边的窗口中展开“调试属性”,把“将错误发送到浏览器”设为True即可,相关截图如下所示:文章源自堕落的鱼-https://www.duoluodeyu.com/821.html

 文章源自堕落的鱼-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

常用正则表达式汇总 网站建设

常用正则表达式汇总

很多不太懂正则的朋友,在遇到需要用正则校验数据时,往往是在网上去找很久,结果找来的还是不很符合要求。所以我最近把开发中常用的一些正则表达式整理了一下,在这里分享一下。给自己留个底,也给朋友们做个参考。...
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定

评论:1   其中:访客  0   博主  1
    • happywanglu
      happywanglu

      对使用IIS7的朋友很有帮助