为什么被送达空白页与" 200确定]在IIS 8.5(运2012 R2)asp.net错误? [英] Why are blank pages being served with "200 OK" for asp.net errors in IIS 8.5 (Win 2012 R2)?

查看:138
本文介绍了为什么被送达空白页与" 200确定]在IIS 8.5(运2012 R2)asp.net错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成立了一个新的Windows 2012 R2服务器运行IIS 8.5。

I've set up a new Windows 2012 R2 server running IIS 8.5.

我们注意到,当发生错误(如ASP.NET状态服务没有运行),与其输出500状态code错误屏幕,请求实际上返回一个完全空白页(仅头 - 无内容)。很明显,我们需要看到的错误,并提供200 OK的错误可能是像谷歌等或任何wesite监测工具索引(这不会通知我们,该网站已经下线了)。

We noticed that when an error occurs (eg the ASP.NET State Service was not running) that instead of outputting a 500 status code error screen, the request actually returns a totally blank page (only headers - with no content). We obviously need to see the errors and serving 200 OK for an error could be very problematic for indexers like Google etc or any wesite monitoring tools (which would not notify us that the site had gone offline).

在我们的其他服务器(IIS 7)我们看到了黄错误屏幕用这样的消息无法连接到服务器状态(或类似)。

On our other servers (IIS 7) we see the "yellow error screen" with a message like "could not connect to state server" (or similar).

怎么可能是错在这里?有一些设置来禁用globablly所有错误(但这将是愚蠢的,如果它也提供了200状态code)或可能别的东西的方式越来越?

What could possibly be wrong here? Is there some setting to globablly disable all errors (but this would be stupid if it also serves the 200 status code) or could something else be getting in the way?

这可能会干扰其他唯一的事情是我们已经得到的ISAPI_Rewrite安装在服务器上(但通常不会引起这个问题)。

The only other thing which could be interfering is we've got ISAPI_Rewrite installed on the server (but this doesn't usually cause this problem).

谢谢!

推荐答案

对Windows 8的一个类似的问题。

Had a similar issue on Windows 8.

在设置搜索启用Windows功能打开或关闭。

In settings search for "Turn Windows features on or off".

检查以下功能被启用

/ Internet信息服务/万维网服务/常见HTTP功能/ HTTP错误
/ Internet信息服务/万维网服务/常见HTTP功能/ 静态内容

"/Internet Information Services/World Wide Web Services/Common HTTP Features/HTTP Errors". "/Internet Information Services/World Wide Web Services/Common HTTP Features/Static Content".

这篇关于为什么被送达空白页与" 200确定]在IIS 8.5(运2012 R2)asp.net错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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