解决IIS7中出现An error occurred on the server when processing the URL错误提示的方法

解决IIS7中出现An error occurred on the server when processing the URL错误提示的方法

前提在ie选项中去掉  显示友好HTTP页面信息
在IIS7上调试程序时,如果程序有错误,默认情况下,会提示:An error occurred on the server when processing the URL. Please contact the system administrator.

在IIS7上调试程序时,如果程序有错误,默认情况下,会提示:

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. 

其实这是IIS7对ASP程序发送的一个脚本错误信息,只要是程序中有错误,就会出现这样的提示。下面的方法是将具体的错误信息显示出来。

一、打开 Internet 信息服务(IIS)管理器。点击出错的站点,并双击右边的ASP图标,如下图所示:

 

二、展开右侧配置中的“调试属性”,把“将错误发送到浏览器”的值设为 "true",如图所示:

 

题外话:一般ASP程序中,建议将启用父路径设为True,

  • 2
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值