ASP.Net:IE6发出无效请求 [英] ASP.Net: IE6 making invalid requests

查看:66
本文介绍了ASP.Net:IE6发出无效请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在线站点,记录了每个错误并通过电子邮件将其发送给我.

I have a live site where every error is logged and e-mailed to me.

我收到很多填充无效且无法删除"的信息.对WebResource.axd的请求错误.仔细观察,该请求是错误的.

I've been getting a lot of "Padding is invalid and cannot be removed." errors on requests to WebResource.axd. Looking closely, the request is erroneous.

这是有问题的请求:

/webresource.axd?d=mgqvdy8omlq71j1set2ida2&ampt=633700045603820000

这是它的外观:

/WebResource.axd?d=MgQvdy8OmLQ71j1SET2IdA2&t=633700045603820000

请注意,缺少大写字母,更重要的是,缺少; & amp.

Notice the lack of capitalization and, more importantly, the lack of ; after &amp.

用户代理是这样的:

UA: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)

这可能是什么?
真实的实际用户会因此而出错吗?
这是IE实际上可能做错的事情吗?
还是这只是一个写得不好的机器人?

What could this be?
Could a real, actual user be getting errors because of this?
Is this something that IE could actually be doing wrong?
Or is this just a badly written bot?

这种情况不时发生,肯定并非发生在我们所有的用户,甚至不是所有的IE用户上.

This happens every now and then, it definitely doesn't happen to all our users, or even to all our IE users.

更新:我也收到很多"Base-64字符串中的无效字符"的信息.发布表单时,也仅从IE 6.0发布,因此我猜它们是相关的.

UPDATE: I'm also getting a lot of "Invalid character in a Base-64 string." when forms are posted, also only from IE 6.0, so i'm guessing they're related.

感谢您的帮助!
丹尼尔

Thanks for your help!
Daniel

推荐答案

我们在ScriptResource.axd和无效的Viewstate异常中看到了类似的错误.最终我找到了这篇文章:

We were seeing similar errors with ScriptResource.axd and Invalid Viewstate exceptions. Eventually I found this post:

  1. 错误:/ScriptResource. axd:无效的视图状态.

这表明IE(以及其他浏览器)中的错误,其中XHTML的无效DOCTYPE导致浏览器向ScriptResource.axd发出了不正确的请求.我们通过将XHTML DOCTYPE更改为HTML5 doctype并从html标记中删除xmlns属性来解决了该问题.我们的页面仍然不符合XHTML.

Which indicated a bug in IE (and possibly other browsers) where an invalid DOCTYPE of XHTML causes the browser to make an incorrect request to ScriptResource.axd. We solved the problem by changing the XHTML DOCTYPE to the HTML5 doctype and removing the xmlns attribute from the html tag. Our pages were not XHTML compliant anyway.

发件人:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >

收件人:

<!DOCTYPE html>
<html>

这篇关于ASP.Net:IE6发出无效请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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