I've developed a website testing on localhost Cassini and it has always run fine, now when I deploy to my webserver I intermittently get the following error:
Global.Application_Error Error: Exception occurred during request: http://....blah.aspx Unable to validate data. at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) HttpApplication.RaiseOnError => EventHandler.Invoke => Global.Application_Error
This is being caught in my global.asax. I've searched around but can't find the cause. This exception is being thrown in extremely simple and small webforms. The site is not hosted within a webfarm.
2 pages seem to cause this error intermittently and one of them stores a bool in the ViewState, but it is not modified apart from that.
Has anyone come across this before?