Asp.Net Error Message:Unable to validate data

Posted by Amitabh on Stack Overflow See other posts from Stack Overflow or by Amitabh
Published on 2010-06-07T10:36:36Z Indexed on 2010/06/07 10:52 UTC
Read the original article Hit count: 221

Filed under:
|
|

We have a Asp.Net Webform page which contains a GridView inside UpdatePanel and refreshes every minute. And every one minute we get the following error in Event log.

Error Message:Unable to validate data.
Stack Trace:   at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
   at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString).

We have tried the following.

  1. Adding a static machine key in the Web.Config. (Did not work?)
  2. Disabling the View State Mac in the Web,.Config using following entry. (Did not work)
<pages buffer="true" enableViewStateMac="false">

Is there something else that might cause this?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about viewstate