ASP .NET 响应内容被切断 - 奇怪的错误

发布于 2024-12-25 02:27:12 字数 6049 浏览 0 评论 0原文

我的应用程序有一个问题,只有在将其部署到发布服务器上后才会发生该问题。我的应用程序在 Webresource.axd 上返回错误 System.Web.HttpException invalid request 客户端请求的WebResource URL例如:(忽略**和*,它们用于分隔URL的一部分)

WebResource.axd?d=PLZ1f5srE_3_5bqe5SNJORbrjr9bvaTarv3MMKJi1fn**GsDQLshr2sDQLshrmsDQ LshrWsDQLshrGsDQLshq2sDQLshumvDQL72ZKbBQK5zYfpBAK5zZuMAwLEytPECwLbo5IqArrNo5oDAsbKp5sDAsbK66oFA rnN28ILArnNj9UCAsfK8/UJAqTNm4oJAv2jypsOAVCjpoIOAsbK/6EDArnN254FAsbKh70KAqTNg7wKAqTNw84NASTKm9AC AsbK8/UJAtyj+uUHAsfKz+cEArnNg+GEAqTN1+UEArnNv78KAsfK560FArrNg7wKArnNr5kDAqTNr5kDAsbKo5oDAsfKm9A CAv2jpoIOAsfK6/cJArnN0+QEArnN560FArnN08QLAv2jzpgOAsbK5/YJAqTN28ILAsbKo+AEAqTNk9ICarnN350DAsbKm9 ACASbK44kJAqfNn4sJArnNS4YDArnN76sFArjNl9MCAsbK6/cJArnN7/QJAqTN0/0JAsbKi7oKAqfNm4oJAv2j+uUHAsfKi 7oKARN44kJArnNu74KAsbKi9QCArnN5/YJAqTNz+cEArnNm4oJAsbKt4cDASTK5/YJArnNh70KArnNp8ELArnNt4cDArN n9ECATrKm9ACAsbKj9UCArnNNn4sJAsbK7/QJArnNi9QCArnNy8wNASTK+8ANAsbKs4YDAqTNi9QCAsfKk9ICarnNl9MCAvq jpoIOArnNo+AEArnNS7AKArnN0/0JAsfKo5oDAsbK/8ENAsfK08QLAsbKk9ICAsbK0+QEAr3Nl9MCAsbK3+MEAsfK+8ANA SBK+8ANArNg7wKAt3Km9ACarnN/8YCArnN3+MEArnNq5gDAvujpoIOArnNi7oKAsfK5/YJArnNk9ICarnN/8ENAqfNo5oD ArnNz+CEARrN560FArnNr7UMAt3K5/YJAsfK3+MEAqTN/6EDArrN/6EDAtyjkioCp83nrQUCxMqLugoCuc3Dzg0CpM3TxAs CP82DvAoCxsqf0QICvc3nrQUC26PmzggCpM3L5gQCpM2fiwkCp83/oQMCpM2jmgMCuc23sQoCuc2H1wICxMrr9wkCuc3row oCuc3r9wkCus2X0wICp82X0wICuc3z9QkCuc2jmgMCuc37lgUCx8qHvQoCp83P5wQCuc3voAoCuc2b0AICxsrTxAsCxMqjm gMCpM2X0wIC3crr9wkCus23sQoCxsrP5wQCxsrnrQUC26P65QcCuc37wA0Cuc3/oQMCpM37wA0Cp823sQoCuc2XjwMCuc3r qgUCpM3nrQUCuc3X+gkCuc3PzQ0C/aOGig4Cuc2HyQsCxsq7vgoCuc3X5QQC+qPKmw4Cuc2nmwMCuc3L5gQCuc2zsgwCxsq 3sQoC/aPmzggCpM23sQoCuc3DxwIC3KPmzggCh+rGqAgChKbr/g4*keCbLSNH7D5G4o/WMirW0wCCoaA==

所以有两件事立即击中了我:

  1. 程序集时间戳末尾缺少 &t=
  2. 有“/”和“+”,这通常在加密的网址中通常找不到

我当然在我这边运行了应用程序一切对我来说都工作正常...但我注意到在我的源文件中,我在客户端错误中看到的部分内容可以在我的 html 中找到:

<script src="/WebResource.axd?d=**PLZ1f5srE_3_5bqe5SNJORbrjr9bvaTarv3MMKJi1fn**NUlSwWXFIxNUWR37nSX-uEeFiuIaj75QpNoWiMNuwvLvtF14FC7RJnWXlWsiRGRTxygC60zWpEKm8nsH2W5C_3w9fBgmsUvMtxxfwjQB23ipcHaCWFd_wvS5QWc5bgmPzUpNNF-gwwdthk8-NKZOJKbUxQg2&amp;amp;t=634601510084481499" type="text/javascript"></script> 

<!-- SOME MORE CODE -->

<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEW5wECuIuguQEC3LnYqw4C+MDh9AEClczxhwICjKHu/A4CovL+qwgC5oaBuAgCip7jrAkC2OrW4wICkIaEvAs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AsfK5/YJArnNk9ICArnN/8ENAqfNo5oDArnNz+cEArrN560FArnNr7UMAt3K5/YJAsfK3+MEAqTN/6EDArrN/6EDAtyjkioCp83nrQUCxMqLugoCuc3Dzg0CpM3TxAsCp82DvAoCxsqf0QICvc3nrQUC26PmzggCpM3L5gQCpM2fiwkCp83/oQMCpM2jmgMCuc23sQoCuc2H1wICxMrr9wkCuc3rowoCuc3r9wkCus2X0wICp82X0wICuc3z9QkCuc2jmgMCuc37lgUCx8qHvQoCp83P5wQCuc3voAoCuc2b0AICxsrTxAsCxMqjmgMCpM2X0wIC3crr9wkCus23sQoCxsrP5wQCxsrnrQUC26P65QcCuc37wA0Cuc3/oQMCpM37wA0Cp823sQoCuc2XjwMCuc3rqgUCpM3nrQUCuc3X+gkCuc3PzQ0C/aOGig4Cuc2HyQsCxsq7vgoCuc3X5QQC+qPKmw4Cuc2nmwMCuc3L5gQCuc2zsgwCxsq3sQoC/aPmzggCpM23sQoCuc3DxwIC3KPmzggCh+rGqAgChKbr/g4ClPD6xgsCr/L07wkC7tqwgwUCtL2fYQLw0+rVBQKSg7DZBwL3teCNBAL3tZyNBAL3tYiNBALHpriBCAKahuPBAV+BOBC5oXM0AZHQT+bmVMUgNw6K" />

注意“错误 URL”的第一部分:

PLZ1f5srE_3_5bqe5SNJORbrjr9bvaTarv3MMKJi1fn

可以在我的 HTML 的脚本标记中找到 以及错误 URL 的第二部分:

GsDQLshr2sDQLshrmsDQLshrWsDQLshrGsDQLshq2sDQLshumvDQL72ZKbBQK5zYfpBAK5zZuMAwLEytPECwL bo5IqArrNo5oDAsbKp5sDAsbK66oFArn28ILArnNj9UCAsfK8/UJAqTNm4oJAv2jypsOAVCjpoIOAsbK/6EDArn N254FAsbKh70KAqTNg7wKAqTNw84NASTKm9ACAsbK8/UJAtyj+uUHAsfKz+cEArnNg+gEAqTN1+UEArnNv78KAsf K560FArrNG7wKArnNr5kDAqTNr5kDAsbKo5oDAsfKm9ACAv2jpoIOAsfK6/cJArnN0+QEArnN560FArnN08QLav2 jzpgOAsbK5/YJAqTN28ILAsbKo+AEAqTNk9ICarnN350DAsbKm9ACAsbK44kJAqfNn4sJArnNs4YDArnN76sFArj Nl9MCAsbK6/cJArnN7/QJAqTN0/0JAsbKi7oKAqfNm4oJAv2j+uUHAsfKi7oKArnN44kJArnNu74KAsbKi9QCArn N5/YJAqTNz+cEArnNm4oJAsbKt4cDASTK5/YJArnNh70KArnNp8ELArnNt4cDArnNn9ECATrKm9ACAsbKj9UCArn Nn4sJAsbK7/QJArnNi9QCArnNy8wNASTK+8ANAsbKs4YDAqTNi9QCAsfKk9ICarnNl9MCAvqjpoIOArnNo+AEArn NS7AKArnN0/0JAsfKo5oDAsbK/8ENAsfK08QLAsbKk9ICAsbK0+QEAr3Nl9MCAsbK3+MEAsfK+8ANAsbK+8ANArn NG7wKAt3Km9ACarnN/8YCArnN3+MEArnNq5gDAvujpoIOArnNi7oKAsfK5/YJArnNk9ICarnN/8ENAqfNo5oDArn Nz+cEARrN560FArnNr7UMAt3K5/YJAsfK3+MEAqTN/6EDArrN/6EDAtyjkioCp83nrQUCxMqLugoCuc3Dzg0CpM3 TxAsCP82DvAoCxsqf0QICvc3nrQUC26PmzggCpM3L5gQCpM2fiwkCp83/oQMCpM2jmgMCuc23sQoCuc2H1wICxMr r9wkCuc3rowoCuc3r9wkCus2X0wICp82X0wICuc3z9QkCuc2jmgMCuc37lgUCx8qHvQoCp83P5wQCuc3voAoCuc2 b0AICxsrTxAsCxMqjmgMCpM2X0wIC3crr9wkCus23sQoCxsrP5wQCxsrnrQUC26P65QcCuc37wA0Cuc3/oQMCpM3 7wA0Cp823sQoCuc2XjwMCuc3rqgUCpM3nrQUCuc3X+gkCuc3PzQ0C/aOGig4Cuc2HyQsCxsq7vgoCuc3X5QQC+qP Kmw4Cuc2nmwMCuc3L5gQCuc2zsgwCxsq3sQoC/aPmzggCpM23sQoCuc3DxwIC3KPmzggCh+rGqAgChKbr/g4

可以在我的html的input标签中找到。

所以无论如何,我猜客户端收到的 html 代码已被损坏/切断,我不知道或与另一个请求混合。也可能是生产在 iis 6 上,而开发在 iis 7 上。生产服务器也使用 SSL,因此不确定这是否会干扰。可能是我代码中的 Server.Transfer 吗?

谁能帮我解决这个问题吗?

多谢!

I have a problem with my application which happens only once it is deployed on publication server. My app returns errors System.Web.HttpException invalid request on Webresource.axd
The requested WebResource URL by the clients is for exemple : (ignore the ** and * they are used to seperate part of the url)

WebResource.axd?d=PLZ1f5srE_3_5bqe5SNJORbrjr9bvaTarv3MMKJi1fn**GsDQLshr2sDQLshrmsDQLshrWsDQLshrGsDQLshq2sDQLshumvDQL72ZKbBQK5zYfpBAK5zZuMAwLEytPECwLbo5IqArrNo5oDAsbKp5sDAsbK66oFArnN28ILArnNj9UCAsfK8/UJAqTNm4oJAv2jypsOAvCjpoIOAsbK/6EDArnN254FAsbKh70KAqTNg7wKAqTNw84NAsTKm9ACAsbK8/UJAtyj+uUHAsfKz+cEArnNg+gEAqTN1+UEArnNv78KAsfK560FArrNg7wKArnNr5kDAqTNr5kDAsbKo5oDAsfKm9ACAv2jpoIOAsfK6/cJArnN0+QEArnN560FArnN08QLAv2jzpgOAsbK5/YJAqTN28ILAsbKo+AEAqTNk9ICArnN350DAsbKm9ACAsbK44kJAqfNn4sJArnNs4YDArnN76sFArjNl9MCAsbK6/cJArnN7/QJAqTN0/0JAsbKi7oKAqfNm4oJAv2j+uUHAsfKi7oKArnN44kJArnNu74KAsbKi9QCArnN5/YJAqTNz+cEArnNm4oJAsbKt4cDAsTK5/YJArnNh70KArnNp8ELArnNt4cDArnNn9ECAtrKm9ACAsbKj9UCArnNn4sJAsbK7/QJArnNi9QCArnNy8wNAsTK+8ANAsbKs4YDAqTNi9QCAsfKk9ICArnNl9MCAvqjpoIOArnNo+AEArnNs7AKArnN0/0JAsfKo5oDAsbK/8ENAsfK08QLAsbKk9ICAsbK0+QEAr3Nl9MCAsbK3+MEAsfK+8ANAsbK+8ANArnNg7wKAt3Km9ACArnN/8YCArnN3+MEArnNq5gDAvujpoIOArnNi7oKAsfK5/YJArnNk9ICArnN/8ENAqfNo5oDArnNz+cEArrN560FArnNr7UMAt3K5/YJAsfK3+MEAqTN/6EDArrN/6EDAtyjkioCp83nrQUCxMqLugoCuc3Dzg0CpM3TxAsCp82DvAoCxsqf0QICvc3nrQUC26PmzggCpM3L5gQCpM2fiwkCp83/oQMCpM2jmgMCuc23sQoCuc2H1wICxMrr9wkCuc3rowoCuc3r9wkCus2X0wICp82X0wICuc3z9QkCuc2jmgMCuc37lgUCx8qHvQoCp83P5wQCuc3voAoCuc2b0AICxsrTxAsCxMqjmgMCpM2X0wIC3crr9wkCus23sQoCxsrP5wQCxsrnrQUC26P65QcCuc37wA0Cuc3/oQMCpM37wA0Cp823sQoCuc2XjwMCuc3rqgUCpM3nrQUCuc3X+gkCuc3PzQ0C/aOGig4Cuc2HyQsCxsq7vgoCuc3X5QQC+qPKmw4Cuc2nmwMCuc3L5gQCuc2zsgwCxsq3sQoC/aPmzggCpM23sQoCuc3DxwIC3KPmzggCh+rGqAgChKbr/g4*keCbLSNH7D5G4o/WMirW0wCCoaA==

So two thing hit me right away :

  1. The missing &t= at the end for the assembly timestamp
  2. There are "/" and "+" which does not seem to be usually found in encrypted url

I ran the application on my side of course everything works fine for me... but I noticed in my source file that parts of what I see in the clients error can be found in my html :

<script src="/WebResource.axd?d=**PLZ1f5srE_3_5bqe5SNJORbrjr9bvaTarv3MMKJi1fn**NUlSwWXFIxNUWR37nSX-uEeFiuIaj75QpNoWiMNuwvLvtF14FC7RJnWXlWsiRGRTxygC60zWpEKm8nsH2W5C_3w9fBgmsUvMtxxfwjQB23ipcHaCWFd_wvS5QWc5bgmPzUpNNF-gwwdthk8-NKZOJKbUxQg2&amp;t=634601510084481499" type="text/javascript"></script> 

<!-- SOME MORE CODE -->

<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEW5wECuIuguQEC3LnYqw4C+MDh9AEClczxhwICjKHu/A4Cov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ArnN/8YCArnN3+MEArnNq5gDAvujpoIOArnNi7oKAsfK5/YJArnNk9ICArnN/8ENAqfNo5oDArnNz+cEArrN560FArnNr7UMAt3K5/YJAsfK3+MEAqTN/6EDArrN/6EDAtyjkioCp83nrQUCxMqLugoCuc3Dzg0CpM3TxAsCp82DvAoCxsqf0QICvc3nrQUC26PmzggCpM3L5gQCpM2fiwkCp83/oQMCpM2jmgMCuc23sQoCuc2H1wICxMrr9wkCuc3rowoCuc3r9wkCus2X0wICp82X0wICuc3z9QkCuc2jmgMCuc37lgUCx8qHvQoCp83P5wQCuc3voAoCuc2b0AICxsrTxAsCxMqjmgMCpM2X0wIC3crr9wkCus23sQoCxsrP5wQCxsrnrQUC26P65QcCuc37wA0Cuc3/oQMCpM37wA0Cp823sQoCuc2XjwMCuc3rqgUCpM3nrQUCuc3X+gkCuc3PzQ0C/aOGig4Cuc2HyQsCxsq7vgoCuc3X5QQC+qPKmw4Cuc2nmwMCuc3L5gQCuc2zsgwCxsq3sQoC/aPmzggCpM23sQoCuc3DxwIC3KPmzggCh+rGqAgChKbr/g4ClPD6xgsCr/L07wkC7tqwgwUCtL2fYQLw0+rVBQKSg7DZBwL3teCNBAL3tZyNBAL3tYiNBALHpriBCAKahuPBAV+BOBC5oXM0AZHQT+bmVMUgNw6K" />

Notice the first part of the "bad URL" :

PLZ1f5srE_3_5bqe5SNJORbrjr9bvaTarv3MMKJi1fn

Can be found in the script tag of my HTML
and the second part of the bad URL :

GsDQLshr2sDQLshrmsDQLshrWsDQLshrGsDQLshq2sDQLshumvDQL72ZKbBQK5zYfpBAK5zZuMAwLEytPECwLbo5IqArrNo5oDAsbKp5sDAsbK66oFArnN28ILArnNj9UCAsfK8/UJAqTNm4oJAv2jypsOAvCjpoIOAsbK/6EDArnN254FAsbKh70KAqTNg7wKAqTNw84NAsTKm9ACAsbK8/UJAtyj+uUHAsfKz+cEArnNg+gEAqTN1+UEArnNv78KAsfK560FArrNg7wKArnNr5kDAqTNr5kDAsbKo5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Kbr/g4

Can be found in the input tag of my html.

So anyway I guess the client receive html code that has been corrupted / cut off I don't know or mixed up with another request. Could also be that production is on iis 6 while developement is on iis 7. Production server is also using SSL so not sure if this could interfere. Could it be the Server.Transfer in my code?

Can anyone help me with this?

Thanks a lot!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

堇年纸鸢 2025-01-01 02:27:12

它是 IE8 Lookaheahd 下载器。该错误对用户来说是透明的,因此我们只需忽略这些错误即可。

ASP.NET 导致 HTML 损坏WebResource.axd 和 ScriptResource.axd

IE8 的 Lookahead 下载器中的错误

谢谢你们的帮助。

It's IE8 Lookaheahd Downloader. The bug is transparent to users so we simply ignore the errors.

ASP.NET Causing Corrupted HTML with WebResource.axd and ScriptResource.axd

Bugs in IE8's Lookahead Downloader

Thanks for your help guys.

不羁少年 2025-01-01 02:27:12

Internet Explorer URL 的字符数限制为 2083

您的 __EVENTVALIDATION 验证参数本身就有 1877 个字符长。添加到 URL 的其余部分(从问题中不清楚,但可能类似于 script 元素的 src 中的内容),您就超出了该限制。

您可能会发现必须使用 HTTP POST 来处理此类请求(由于长度原因)。

什么可以解释开发人员之间的差异。与生产服务器不同的是,您的开发人员可能有一个较短的基本 URL。机器(例如 localhost 会比 www.example.com 短),因为您刚刚达到实际限制,所以它可能仍然可以在您的开发人员上工作。服务器。

Internet Explorer has a 2083-character limit on URLs.

Your __EVENTVALIDATION validation parameter alone is 1877 characters long. Added to the rest of the URL (not clear from the question, but possibly something similar to what in src of the script element), you're above that limit.

You may find that you have to use HTTP POST for that sort of request (due to the length).

What could explain the difference between the dev. and production server is that you may have a shorter base URL on your dev. machine (e.g. localhost would be shorter than www.example.com), since you're just around the actual limit, it may still work on your dev. server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文