[英]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.