ErrorMessage: Unable to validate data.

G

Guest

Guys,

Does anyone have any clues about this stack trace? What can be the reason
for this error?

Is it something related to viewstate? Can I do anything at the
application-level by making code changes to prevent this happening again?

This error pops out when I click a particular button.....but error is not
persistent in all the cases it is sporadic and happens once in 6-7 times
which makes it difficult to track the root cause and debug.

Please find the "Stack trace" below....

----------------------------------------------------------------------------------------------

ErrorMessage:
----------------
Unable to validate data.

ErrorSource: System.Web

ErrorTargetSite:
----------------
Byte[] GetDecodedData(Byte[], Byte[], Int32, Int32, Int32 ByRef)

ErrorTrace:
----------------
at System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[]
modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.LosFormatter.Deserialize(String input)

PostData:
 
B

bruce barker

the message means the viewstate value is invalid. viewsource in the browser
and compare to waht is recieved on the server. some proxies will truncate
viewstate if its cover 2k.

-- bruce (sqlwork.com)


|
| Guys,
|
| Does anyone have any clues about this stack trace? What can be the reason
| for this error?
|
| Is it something related to viewstate? Can I do anything at the
| application-level by making code changes to prevent this happening again?
|
| This error pops out when I click a particular button.....but error is not
| persistent in all the cases it is sporadic and happens once in 6-7 times
| which makes it difficult to track the root cause and debug.
|
| Please find the "Stack trace" below....
|
| --------------------------------------------------------------------------
--------------------
|
| ErrorMessage:
| ----------------
| Unable to validate data.
|
| ErrorSource: System.Web
|
| ErrorTargetSite:
| ----------------
| Byte[] GetDecodedData(Byte[], Byte[], Int32, Int32, Int32 ByRef)
|
| ErrorTrace:
| ----------------
| at System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf,
Byte[]
| modifier, Int32 start, Int32 length, Int32& dataLength)
| at System.Web.UI.LosFormatter.Deserialize(String input)
|
| PostData:
| ----------------
| __EVENTTARGET: contacts:Button_Next
| __EVENTARGUMENT:
| __VIEWSTATE:
|
dDwyMzUxNDQ2ODt0PDtsPGk8MD47PjtsPHQ8O2w8aTwxPjtpPDQ+O2k8Nj47aTw3PjtpPDg+Oz47
bDx0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s+O3Q8cDxsPFZpc2libGU7PjtsPG88dD47Pj47Oz47dDxwPHA8bDxUZXh0Oz47bDwxMDA7Pj47Pjs7Pjt0PHA8cDxsPFRleHQ7PjtsPDEwMDs+Pjs+Ozs+O3Q8cDxwPGw8SW1hZ2VVcmw7VmlzaWJsZTs+O2w8aHR0cDovL3d3dy5idXJoYW5pY3JpY2tldGNsdWIub3JnL2ltYWdlcy9waWN0dXJlcy83X3BpYy5KUEcgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDtvPHQ+Oz4+Oz47Oz47Pj47Pj47bDxjaGtUZWFtQWRtaW47Y2hrQWN0aXZlOz4+aDMzu/XGmsCgTdXLnHvkudm+ApM=

I am getting this error after a Server.Transfer upon a PostBack. This does
not happen on my development box, only on the production windows 2003
machine. This seems to be happening recently as well because I had the same
site on another windows 2003 machine and it worked fine. But on a new one
its giving this problem.

Any help will be appreciated.

bruce barker said:
the message means the viewstate value is invalid. viewsource in the browser
and compare to waht is recieved on the server. some proxies will truncate
viewstate if its cover 2k.

-- bruce (sqlwork.com)


|
| Guys,
|
| Does anyone have any clues about this stack trace? What can be the reason
| for this error?
|
| Is it something related to viewstate? Can I do anything at the
| application-level by making code changes to prevent this happening again?
|
| This error pops out when I click a particular button.....but error is not
| persistent in all the cases it is sporadic and happens once in 6-7 times
| which makes it difficult to track the root cause and debug.
|
| Please find the "Stack trace" below....
|
| --------------------------------------------------------------------------
--------------------
|
| ErrorMessage:
| ----------------
| Unable to validate data.
|
| ErrorSource: System.Web
|
| ErrorTargetSite:
| ----------------
| Byte[] GetDecodedData(Byte[], Byte[], Int32, Int32, Int32 ByRef)
|
| ErrorTrace:
| ----------------
| at System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf,
Byte[]
| modifier, Int32 start, Int32 length, Int32& dataLength)
| at System.Web.UI.LosFormatter.Deserialize(String input)
|
| PostData:
| ----------------
| __EVENTTARGET: contacts:Button_Next
| __EVENTARGUMENT:
| __VIEWSTATE:
|
dDwyMzUxNDQ2ODt0PDtsPGk8MD47PjtsPHQ8O2w8aTwxPjtpPDQ+O2k8Nj47aTw3PjtpPDg+Oz47
bDx0PDtsPGk8MD47PjtsPHQ8O2w8aTwxPjs+.........
 
P

Pallav Agrawal via DotNetMonster.com

Hi,

I am facing the same problem. Did anyone findout what was the problem.

Thanks
Pallav.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top