Last post Jul 05, 2018 06:53 AM by Nan Yu
Jul 04, 2018 12:53 PM|nigpig|LINK
Been getting a large number of these recently relating to WebResource.axd and ScriptResource.axd.
They seem to be generated by a googlebot visiting a page. For some reason the resources are not decrypting.
Exception information: Exception type: System.Web.HttpException Exception message: This is an invalid script resource request. Inner exception information (level 1): Exception type: System.Security.Cryptography.CryptographicException Exception message: Error
occurred during a cryptographic operation.
In my web.config I have the machinekey section set for use within a webfarm by using fixed values as here.
The validation key us a 64 character string. the decryption key is 64 character string.
<machineKey compatibilityMode="Framework45" validationKey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" decryptionKey="5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" validation="HMACSHA256"
My guess is either A) the google cached resources are out of date, B) the url is being changed or shortened, C) something in .net or IS not working on the server.
Does anyone have any ideas?
Jul 05, 2018 06:53 AM|Nan Yu|LINK
Refer to reply : https://stackoverflow.com/a/4646318/5751404
If you have a web farm your machine keys might not be setup, if this is the case you can resolve the issue by setting the machine key for each server in your web farm. The error can also happen if the machine key changes between post backs which can
sometime happen. I believe if you are not using a web farm this is well not happen very often. If you have a web farm this is the most likely cause.
You can also refer to below links for potential solution :
Hope it helps.