Logo 
Search:

C# Forum

Ask Question   UnAnswered
Home » Forum » C#       RSS Feeds

Error: Unable to validate data atSystem.Web.Configuration.MachineKey.GetDecodedData

  Asked By: Maddison    Date: Sep 09    Category: C#    Views: 5993
  

I am getting following error message.

Error: Dot Net Error Message: Unable to validate data atSystem.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) at System.Web.UI.LosFormatter.Deserialize(String input).

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Kawakib Mansour     Answered On: Sep 09

Description: It happens when users leave a page open for a long time, and then cause a post back. Machine key is being automatically generated and it changes before the user causes the postback, and it can't validate  it then.

Solution: Set a static machine key.
This article explains how to create a key
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312906

 
This post is locked for further answers.