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: 6309

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).



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

This post is locked for further answers.