After setting the web.config attribute viewStateEncryptionMode to "Always", the following error is thrown when attempting to search using the standard search textbox:
Unable to validate data. at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, IVType ivType, Boolean useValidationSymAlgo) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
I've also discovered more strange behaviour, in that if I copy the url of the search results page (after searching, and receiving the error), and paste that into a new tab, then the search results are displayed fine! And I can even change the text that I'm searching for and successfully perform another search.
FYI I've setup the web.config machineKey element like this:
validationKey="AutoGenerate,IsolateApps"
decryptionKey="AutoGenerate,IsolateApps"
validation="AES"
decryption="Auto"
If I change the viewStateEncryptionMode back to "Auto" then search works again.
How can I get search to work, when the viewStateEncryptionMode is set as "Always"?