I have several websites that get approximately 3,000 page views per day per day, and I get this view error about 5-10 times a day by hitting global.asax:
System.Web.HttpException: Unable to validate data. in System.Web.Configuration.MachineKeySection.GetDecodedData (Byte [] buf, Byte [] modifier, Int32 start, Int32 length, Int32 & dataLength) in System.Web.UI.ObjectStateFormatter.Deserialize (String inputString)
I tried:
- hard-coded machine key in web.config for all websites
- hard coding machien key in machine.config
- Add items to the web.config page section for all websites.
The car key is as follows:
<machineKey validationKey="key goes here" decryptionKey="key goes here" validation="SHA1" decryption="AES" />
The page section is as follows:
<pages renderAllHiddenFieldsAtTopOfForm="true" validateRequest="false" enableEventValidation="false" viewStateEncryptionMode="Never">
The errors are not related to recycling the application pool, as far as I can explain, since the pool is configured to process for every 100,000 requests. I do not have a web farm or a web garden. Quite often, I get two or three of these errors in a line, as if the user was receiving an error, going back and clicking the link again.
Does anyone have any ideas?
source share