Yesterday we started getting intermittent Invalid Viewstate errors in an ASP.NET website (1.1) that has been running perfectly for the past few years!
System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: Invalid_Viewstate Client IP: xxx.xxx.xxx.xxx Port: 55415 User-Agent: UCWEB/2.0 (Linux; U; Adr 4.1.2; en-US; ST27i) U2/1.0.0 UCBrowser/8.7.0.315 U2/1.0.0 Mobile ViewState: dDwyMDMzMzIzOTc5O3Q8O2w8aTwz.....
Http-Referer: http://www.mysite.com/default.aspx Path: /default.aspx. ---> System.FormatException: Invalid length for a Base-64 char array. at System.Convert.FromBase64String(String s) at System.Web.UI.LosFormatter.Deserialize(String input) at System.Web.UI.Page.LoadPageStateFromPersistenceMedium() ....
The strange thing is we haven't made any changes to the code, problems just started on their own.
Have performed all the usual checks such as machine.config validation keys etc.
Finally managed to relieve the problem for desktop browser by turning off ViewStateMac:
<pages enableViewStateMac="False" />
Now in the logs the only browsers reporting the error are mobile browsers although we cannot reproduce the error with any desktop or mobile browsers ourselves :(
UPDATE
Looking through the logs we now suspect the cause of the error are some Windows Updates that were automatically installed yesterday.
Windows Updates that were auto installed 13 February 2014:
http://support.microsoft.com/kb/2898860
http://support.microsoft.com/kb/2901115
Is anybody else seeing Invalid_Viewstate in .net 1.1 since these updates were released?
There is no specific information about what the updates changed from MS.