Error Message: Unable to validate data.

Posted by Abhi_patil under ASP.NET on 5/27/2009 | Views : 4590 | Status : [Member] | Replies : 3
i am getting error

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)

getting this error even i have set machinkey element in web.config
<system.web>
<machineKey validationKey='A96B2F3BF50A1A2A1B81214A550B89F2A318B3712FB5AC8CD82AF4F3925B3C6ED58CF5F38503629A78BF8C27B1B736C4E84DACE342AB83A42932B44EBC3D7601'
decryptionKey='D01201C69DF5E9863133028CBD4E6EEFC45B5E609D7F4107' validation='SHA1'/>
</system.web>




Responses

Posted by: Vuyiswamb on: 5/27/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Afternoon Abhi_patil

Have you got a machine key specified in your web.config? It might be corrupted or missing some data. The machine key has to be a specific length and if it is missing characters then it will fail. Try to remove the machine key section from the web.config and see if this stops the error. Then you at least know if this is the cause.

Thank you for posting at Dotnetfunda

Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

Abhi_patil, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhi_patil on: 5/28/2009 [Member] Starter

Up
0
Down
Hi ...
that machine key element was not before...i am getting this error since long time..so i post query and i got this suggestion by forum to insert machine key element...but still i got error...

Abhi_patil, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 5/28/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Restart your IIS and try it again

Thank you for posting at Dotnetfunda
[Administrator]

Abhi_patil, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response