简体   繁体   English

如何解决ASP.Net中的“这是无效的Webresource请求”错误

[英]How to resolve “This is an invalid webresource request” error in ASP .Net

After upgrading ASP .Net 3.5 app to .NET 4.5.2 we started receiving numerous “This is an invalid webresource request” errors. 将ASP .NET 3.5应用程序升级到.NET 4.5.2之后,我们开始收到许多“这是无效的Webresource请求”错误。

We have traced the error to missing css from Obout control dll. 我们已经从Obout控件dll中将错误跟踪到丢失的CSS。 The control is used widely and we cannot replace it. 该控件已被广泛使用,我们无法替代它。

The upgrade was performed month and half ago and we still receive the same number of errors. 升级是在一个半月前执行的,我们仍然收到相同数量的错误。

I am aware of other Stackoverflow questions regarding the same problem, but some of the answers suggest problem disappears with time. 我所知道的其他#1 问题就同样的问题,但一些问题的答案提示问题消失随着时间的推移。 This has not happened in our case yet, almost 2 months after upgrade. 在我们的情况下,升级已经快两个月了,这还没有发生。

Not really sure how that happened but try adding this code to your web config 不太确定如何发生,请尝试将此代码添加到您的网络配置中

And then in your IIS, under Machine Key for the website, we have Encryption Method = SHA1 Decryption Method = DES 然后在您的IIS中,在网站的“计算机密钥”下,我们有“加密方法= SHA1解密方法= DES”

make sure all the checkboxes for Validation key and Decryption key are unchecked. 确保未选中“验证密钥”和“解密密钥”的所有复选框。 Note that "xxx" and "yyy" are in the key fields. 请注意,“ xxx”和“ yyy”在关键字段中。

After making this change, you may need to recycle your app pool, and clear browser caches. 进行此更改后,您可能需要回收您的应用程序池,并清除浏览器缓存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 asp.net错误:这是一个无效的webresource请求 - asp.net error: This is an invalid webresource request WebResource.axd错误 - “这是一个无效的Web资源请求。” - WebResource.axd error - “This is an invalid webresource request.” 异常:“无效的网络资源请求” - Exception: 'Invalid webresource request' 如何解决错误:Asp.Net 请求中出现意外标记“&lt;”? - How to resolve Error: Unexpected token '<' in Asp.Net request? ASP.NET:WebResource.axd 调用 404 错误:如何知道哪个程序集/资源丢失或负责? - ASP.NET: WebResource.axd call 404 error: how to know which assembly/resource is missing or responsible? Asp.net 2.0中的Webresource.axd语法错误 - Webresource.axd Syntax Error in Asp.net 2.0 不带参数请求的 WebResource.axd - 这是一个无效的网络资源请求 - WebResource.axd requested without parameters - This is an invalid webresource request 在ASP.NET的WebResource中嵌入位图 - Embedding a Bitmap in ASP.NET's WebResource 使用JQuery作为ASP.NET嵌入式Web资源 - Using JQuery as an ASP.NET embedded webresource asp net 4 应用程序中的 scriptresource.axd 404 错误 - 虽然 webresource 工作正常 - scriptresource.axd 404 error in asp net 4 application - webresource works fine though
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM