我得到使用传统的ASP,IIS6和2003 R2 WinServer空白页,而不是错误信息 [英] I'm getting blank pages instead of error messages using classic ASP, IIS6 and WinServer 2003 R2

查看:318
本文介绍了我得到使用传统的ASP,IIS6和2003 R2 WinServer空白页,而不是错误信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个WinServer2003 R2运行的旧系统 - IIS6和它使用传统的ASP写

We have an old system running on a WinServer2003 R2 - IIS6 and it was written using classic ASP.

我们需要捕获所有的错误和为此,我配置了IIS重定向404和500S到自定义页写入的信息到一个日志文件(此页创建和管理日志)(自定义错误配置)。

We need to trap all errors and for that, I configured IIS to redirect 404s and 500s to a custom page (custom errors config) that writes the info to a log file (this page creates and manages the logs).

下面是奇怪的事情:发生错误第一次,页面被重定向,我得到我的日志文件条目。但是,如果这个页面被再次加载(我打F5,或其他用户去那里,等),浏览器接收到一个空白页:任何错误信息,我的自定义页面曾经被称为

Here is the weird thing: The first time the error occurs, the page is redirected and I get my log file entry. But, if this page is loaded again (I hit F5, or other user goes there, etc), the browser receives a blank page: no error message and my custom page is ever called.

如果我重新启动IIS6我得到同样的行为,它的作品第一次,接下来没有。

If I restart IIS6 I get the same behavior, first time it works, next not.

- >发送ASP错误到浏览器开启

-> Send ASP errors to browser is turned on

- >显示友好HTTP错误是在我的资源管理器中关闭

-> Show friendly http errors is turned off in my explorer

有什么想法?

推荐答案

您需要确保服务器端调试未在ASP模块中启用。

You need to ensure Server Side Debugging is not enabled in the ASP module.

经典ASP服务器500错误返回200的。尝试在打开服务器端调试应用程序,这则不能发现和IIS随后返回200响应的。

Classic ASP server 500 errors are returned as 200's. An attempt is made at opening the Server Side Debug Application, that then can't be found and IIS subsequently returns a 200 response.

这篇关于我得到使用传统的ASP,IIS6和2003 R2 WinServer空白页,而不是错误信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆