黄色死亡屏幕仅在IE中工作

时间:2012-11-07 16:28:26

标签: asp.net iis-7 yellow-screen-of-death

我继承了一个大型应用程序,每当发生异常时,我都会在 Chrome 中看到一个乱码屏幕:

enter image description here

然而,在 IE 中,它显示了预期的黄色死亡屏幕:

enter image description here

我无法弄清楚为什么会发生这种情况。这可能是编码问题吗?

修改 - 以下是请求和响应标头:

请求:

Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Cookie:.ASPXAUTH=5D3E8316B9AF0... [cut for brevity] 
Host:localhost:81
Referer: **************** [intentionally hidden]
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.96 Safari/537.4

响应:

Cache-Control:private
Content-Length:6193
Content-Type:text/html; charset=utf-8
Date:Wed, 07 Nov 2012 16:42:15 GMT
Server:Microsoft-IIS/7.5
X-AspNet-Version:4.0.30319
X-Powered-By:ASP.NET

1 个答案:

答案 0 :(得分:1)

尝试使用Chrome开发者工具(菜单工具 - > 开发人员工具)调试此案例。切换到网络选项卡并重新加载页面。现在点击左栏中的文件名,然后选中标题 - > 响应标头 - >值 text / html content-type 以及 gzip content-encoding 。也许响应是压缩的,但在http标头中没有正确声明。

另请查看响应标签。内容是否是可读的html文档?

相关问题