页面显示随机符号,而不是在Firefox的错误信息 [英] Page displays random symbols instead of error message on Firefox

查看:220
本文介绍了页面显示随机符号,而不是在Firefox的错误信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随机,上了几个项目,一些网页上显示随机符号而不是一个错误消息。像这样的:

Randomly, on a few projects, some pages display random symbols instead of an error message. Like this one :

<$c$c>I %&/m {J J t $@ iG#) * eVe]f@ 흼 { { ; N' ?\\fdl J ɞ! ?~|?\" Ey ')= y6 h Ųi - ez 7i޴i L , 4 ̧i Ίe Ͼ|uz : } U{ ΋ ~ ȗu.- l>F' Y l $k tF { [ 'U |6J lR b6 юG k ^,ӏ ߿ }<~< ;c R鱕iV m | yDl tRͮ |N > Ey 裟 k !z Ѳ Y)5 G A 8$D Ѥ̦oI ] P / V [W〜m`NrvkMqz3wV

��������I�%&/m�{J�J��t��$@�����iG#)�*��eVe]f@�흼 ��{���{��;�N'���?\fdl��J�ɞ!���?~|?"��Ey�')=��y6����h�����Ųi��- �ez����7i޴i�L���,�4�̧i���Ίe��Ͼ|uz����:�}���U{���������΋��~�ȗu.-�����l>F'�����Y�l��$k�tF������{�� ��[����'U���|6J�lR��b6��юG�k�^,ӏ��߿�}<~<�;c�R鱕iV��m�|��� �yDl���tRͮ�|N��>�Ey�裟�k��!z���Ѳ�Y)5��G��A�8$D��Ѥ̦oI��]�P �"�/��v[����W�~���m`N�rvk���Mqz3���wV�

它发生相当随机的,似乎由不同的因素造成的。在这里,这是一个文件上传

It happens quite randomly, and seems to be caused by different factors. Here, it's on a file upload.

我们使用SharpZipLib此页面上,但codePATH不应该使用它。

We use SharpZipLib on this page, but the codepath shouldn't use it.

有谁知道为什么出现这种情况,以及如何prevent呢?

Does anyone knows why this happens, and how to prevent it ?

编辑:它只发生在Firefox。 IE(8)正确地显示错误消息。

EDIT : it only happens on Firefox. IE(8) displays the error message correctly.

编辑2:它似乎相当随机发生的,仅适用于某些网页/网站。在另一个IIS站点在同一页面效果很好。看来要做到这一点只在IIS7;我没有那些在IIS6的报道,我还没有遇到过我的dev的机器上。

EDIT 2 : it seems to happen quite randomly, only on some pages/sites. The same page on another IIS site works well. It seems to do this only on IIS7 ; I have no reports of those on IIS6, and I haven't encountered it on my dev machine.

修改3:它看起来只发生在页面崩溃

EDIT 3 : it looks like it happens only when the page crashes.

修改4:确定,因此,它发生只在IIS7,只有当我得到一个错误500,我认为它可能是有问题的IIS错误页面。我怎么可以尝试改变他们?

EDIT 4 : Ok, so, it happens only on IIS7, and only when I get an error 500. I think it might be the IIS error pages that have a problem. How can I try to change them ?

萤火虫给我那些头:

响应的结果
缓存控制私人结果
内容类型text / html;字符集= utf-8的结果
服务器Microsoft-IIS / 7.0结果
的X ASPNET-版本2.0.50727结果
的X供电,通过ASP.NET结果
日期星期一,2011年4月4日十时31分24秒GMT结果
内容长度2284结果
请求的结果
主机XXXX结果
用户代理的Mozilla / 5.0(视窗; U; Windows NT的6.1; FR; RV:1.9.2.16)的Gecko / 20110319火狐/ 3.6.16(.NET CLR 3.5.30729; .NET4.0E)结果
接受text / html的,是application / xhtml + xml的,应用/ XML; Q = 0.9, / 的; Q = 0.8结果
接受语言FR,FR-FR; Q = 0.8,EN-US; Q = 0.5,连接; Q = 0.3结果
接受编码的gzip,紧缩结果
接收字符集ISO-8859-1,UTF-8,Q = 0.7 *; Q = 0.7结果
保持活动115结果
连接保持结果
Referer的XXXXX结果
曲奇XXXXXX

Response
Cache-Control private
Content-Type text/html; charset=utf-8
Server Microsoft-IIS/7.0
X-AspNet-Version 2.0.50727
X-Powered-By ASP.NET
Date Mon, 04 Apr 2011 10:31:24 GMT
Content-Length 2284
Request
Host xxxx
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( .NET CLR 3.5.30729; .NET4.0E)
Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 115
Connection keep-alive
Referer xxxxx
Cookie xxxxxx

有没有办法对我说:这个页面上,我根本不接受gzip的COM pression?

Is there any way for me to say "on this page, I don't accept gzip compression at all" ?

推荐答案

我没有找到任何真正的解决办法,但我找到了一个令人满意的解决办法。

I did not find any real solution, but I found a satisfying workaround.

请记住,这个问题只有在这些条件下出现了:

Keep in mind that the problem only arises under those conditions :


  • 该网站IIS7 / Windows Server 2008上配置。

  • 显示垃圾符号的页内,在现实中,坠毁。由此产生的垃圾,其实,这还没有一个用gzip COM pressed错误信息DECOM pressed,或者类似的东西。

  • 禁用gzip的COM pression上动态或静态内容一点儿也不能改变什么

解决方法很简单:拒绝在浏览器中的gzip-COM pressed内容。在Firefox中,如在<一个href=\"http://forgetmenotes.blogspot.com/2009/05/how-to-disable-gzip-com$p$pssion-in.html\">http://forgetmenotes.blogspot.com/2009/05/how-to-disable-gzip-com$p$pssion-in.html

The workaround is simple : refuse gzip-compressed content in the browser. In Firefox, as seen in http://forgetmenotes.blogspot.com/2009/05/how-to-disable-gzip-compression-in.html :


  1. 输入about:在地址栏配置(接受声明)

  2. 键入编码在过滤器领域的网址栏下方

  3. 双击行编码network.http.accept-

  4. 空值

在我的网站上,它做了一些奇怪的事情与CSS(和计算器没有在所有后,任何CSS),但至少它正确地显示我的错误消息,这使我解决的bug。

On my website, it did some weird things with the CSS (and StackOverflow does not have any CSS at all after that), but at least it correctly showed me the error message, which enabled me to fix the bug.

希望这将帮助别人。

这篇关于页面显示随机符号,而不是在Firefox的错误信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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