asp.net - 蓝屏死机只能在IE下运行

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

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

enter image description here

但是在 IE 中它显示了预期的死机蓝屏:

enter image description here

我不明白为什么会这样。会不会是编码问题?

编辑 - 以下是请求和响应 header :

要求:

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

最佳答案

尝试使用 Chrome 开发者工具(菜单 工具 -> 开发者工具)调试这个案例。切换到网络 选项卡并重新加载页面。现在单击左栏中的文件名并检查 Headers -> Response Headers -> content-type 的值 text/html 以及 gzip内容编码。也许响应被压缩了,但这在 http header 中没有正确声明。

另请查看响应 选项卡。内容是否有可读的html文件?

关于asp.net - 蓝屏死机只能在IE下运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13273954/

相关文章:

.net - 加快 ASP.NET 中的构建时间

asp.net - 身份验证超时无法正常工作

iis-7 - IIS 7.5 IP 地址有效,但完全限定名称无效

ASP.NET MVC : Weird characters in error page

javascript - jquery 自动完成文本框不适用于使用 ASP.NET 的更新面板

asp.net-mvc - IIS 7 重写规则和 Url.Content 问题

c# - IIS7 中所有新的 aspx 页面上的解析器错误

ASP.NET - 破解死亡蓝屏

javascript - 如何在 7 个字母/字母/数字和新行中的新字母之后在键上插入定界符 - Jquery