Unable to validate data!!!

W

.::wireless::.

Hi all,

Does anybody know what could be the reason of the following error?

Thanks.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Unable to validate data.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Unable to validate data.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[]
modifier, Int32 start, Int32 length, Int32& dataLength) +196
System.Web.UI.LosFormatter.Deserialize(String input) +60

[HttpException (0x80004005): Authentication of viewstate failed. 1) If this
is a cluster, edit <machineKey> configuration so all servers use the same
validationKey and validation algorithm. AutoGenerate cannot be used in a
cluster. 2) Viewstate can only be posted back to the same page. 3) The
viewstate for this page might be corrupted.]
System.Web.UI.LosFormatter.Deserialize(String input) +118
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +102

[HttpException (0x80004005): Invalid_Viewstate
Client IP: 85.96.12.54
Port: 1916
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
ViewState:
dDw2MTUzOTgyODI7dDw7bDxpPDE+Oz47bDx0PDtsPGk8Mz47aTw3PjtpPDk+O2k8MTE+O2k8MTU+O2k8MTk+O2k8MjM+O2k8Mjc+O2k8MzU+O2k8Mzc+O2k8Mzk+O2k8NDc+O2k8NDk+O2k8NTE+O2k8NjE+Oz47bDx0PHA8cDxsPFRleHQ7PjtsPDIwMDQxMTQyMDE2NDU4NTs+Pjs+Ozs+O3Q8cDxwPGw8VGV4dDs+O2w8QURBTkE7Pj47Pjs7Pjt0PHA8cDxsPFRleHQ7PjtsPEhhc2FuIMSwTkNFU1U7Pj47Pjs7Pjt0PHA8cDxsPEVuYWJsZWQ7PjtsPG88dD47Pj47Pjs7Pjt0PHA8cDxsPEVuYWJsZWQ7PjtsPG88dD47Pj47Pjs7P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GFtIDM2IGFkZXQgw7xyw7xuIHNpcGFyacWfaSBhbMSxbmTEsS47PjtAPGVtaW4gaXRyaXlhdCBkZXBvc3Ugeml5YXJldCBub2t0YXPEsW5kYSBhc2xhbiDDtnphc2xhbiBpbGUgZ8O2csO8xZ/DvGxkw7wuIDExMzEzODAzNTIga2FyxZ/EsWzEscSfxLFuZGEgdG9wbGFtIDIxNiBhZGV0IMO8csO8biBzaXBhcmnFn2kgYWzEsW5kxLEuO8O2dsO8bsOnIGVjemFuZXNpIHppeWFyZXQgbm9rdGFzxLFuZGEgZG/En2FuIGbEsXJ0xLFuYSBpbGUgZ8O2csO8xZ/DvGxkw7wuIDIyNjI3NjA5MiBrYXLFn8SxbMSxxJ/EsW5kYSB0b3BsYW0gMzYgYWRldCDDvHLDvG4gc2lwYXJpxZ9pIGFsxLFuZMSxLjtoYXlhdCBlY3phbmVzaSB6aXlhcmV0IG5va3Rhc8SxbmRhIGthbGZhIGFsaSBiZXkgaWxlIGfDtnLDvMWfw7xsZMO8LiAyMjYyNzYwOTIga2FyxZ/EsWzEscSfxLFuZGEgdG9wbGFtIDM2IGFkZXQgw7xyw7xuIHNpcGFyacWfaSBhbMSxbmTEsS47Pj47Pjs7Pjs+Pjs+Pjs+jLMi9JBCkgpee5ZEW3ouNbAsvv4=
Http-Referer: http://dev.sidenet.net/trust/satisform.aspx
Path: /trust/satisform.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +448
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +447
 
S

Scott Mitchell [MVP]

Here are three potential reasons:

1) If this is a cluster, edit <machineKey> configuration so all servers
use the same validationKey and validation algorithm. AutoGenerate
cannot be used in a cluster.

2) Viewstate can only be posted back to the same page.

3) The viewstate for this page might be corrupted.


Is your site serving from a Web farm? Are you dynamically adding
controls or mucking with the __VIEWSTATE hidden form field in any way?


..::wireless::. said:
Hi all,

Does anybody know what could be the reason of the following error?

Thanks.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Unable to validate data.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Unable to validate data.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[]
modifier, Int32 start, Int32 length, Int32& dataLength) +196
System.Web.UI.LosFormatter.Deserialize(String input) +60

[HttpException (0x80004005): Authentication of viewstate failed. 1) If this
is a cluster, edit <machineKey> configuration so all servers use the same
validationKey and validation algorithm. AutoGenerate cannot be used in a
cluster. 2) Viewstate can only be posted back to the same page. 3) The
viewstate for this page might be corrupted.]
System.Web.UI.LosFormatter.Deserialize(String input) +118
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +102

[HttpException (0x80004005): Invalid_Viewstate
Client IP: 85.96.12.54
Port: 1916
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
ViewState:
dDw2MTUzOTgyODI7dDw7bDxpPDE+Oz47bDx0PDtsPGk8Mz47aTw3PjtpPDk+O2k8MTE+O2k8MTU+O2k8MTk+O2k8MjM+O2k8Mjc+O2k8MzU+O2k8Mzc+O2k8Mzk+O2k8NDc+O2k8NDk+O2k8NTE+O2k8NjE+Oz47bDx0PHA8cDxsPFRleHQ7PjtsPDIwMDQxMTQyMDE2NDU4NTs+Pjs+Ozs+O3Q8cDxwPGw8VGV4dDs+O2w8QURBTkE7Pj47Pjs7Pjt0PHA8cDxsPFRleHQ7PjtsPEhhc2FuIMSwTkNFU1U7Pj47Pjs7Pjt0PHA8cDxsPEVuYWJsZWQ7PjtsPG88dD47Pj47Pjs7Pjt0PHA8cDxsPEVuYWJsZWQ7PjtsPG88dD47Pj47Pjs7Pjt0PHA8cDxsPEVuYWJsZWQ7PjtsPG88dD47Pj47Pjs7Pjt0PHA8cDxsPEVuYW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aXRyaXlhdCBkZXBvc3Ugeml5YXJldCBub2t0YXPEsW5kYSBhc2xhbiDDtnphc2xhbiBpbGUgZ8O2csO8xZ/DvGxkw7wuIDExMzEzODAzNTIga2FyxZ/EsWzEscSfxLFuZGEgdG9wbGFtIDIxNiBhZGV0IMO8csO8biBzaXBhcmnFn2kgYWzEsW5kxLEuO8O2dsO8bsOnIGVjemFuZXNpIHppeWFyZXQgbm9rdGFzxLFuZGEgZG/En2FuIGbEsXJ0xLFuYSBpbGUgZ8O2csO8xZ/DvGxkw7wuIDIyNjI3NjA5MiBrYXLFn8SxbMSxxJ/EsW5kYSB0b3BsYW0gMzYgYWRldCDDvHLDvG4gc2lwYXJpxZ9pIGFsxLFuZMSxLjtoYXlhdCBlY3phbmVzaSB6aXlhcmV0IG5va3Rhc8SxbmRhIGthbGZhIGFsaSBiZXkgaWxlIGfDtnLDvMWfw7xsZMO8LiAyMjYyNzYwOTIga2Fyx
Z/EsWzEscSfxLFuZGEgdG9wbGFtIDM2IGFkZXQgw7xyw7xuIHNpcGFyacWfaSBhbMSxbmTEsS47Pj47Pjs7Pjs+Pjs+Pjs+jLMi9JBCkgpee5ZEW3ouNbAsvv4=
Http-Referer: http://dev.sidenet.net/trust/satisform.aspx
Path: /trust/satisform.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +448
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +447


--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!
 
W

.::wireless::.

No, our site is serving from a single web server. And I am not adding
controls dynamically.

However I didn't understand what does "mucking with the __VIEWSTATE hidden
form field in any way" mean?

The page contains some textboxes and a button. While pressed to the button,
the content of the textboxes is received and added into a listbox.

This process continues until user doesnt want to add anymore into the
listbox. After adding all required data, with another button press, the
content of the listbox

is sent to the user via email.

The "unable to validate data" error occurs while adding the contents of the
textboxes into listbox after repeating this adding operation three or four
times.

Is this information enough to help me to solve this problem?

Thank you very much for your interests.



Scott Mitchell said:
Here are three potential reasons:

1) If this is a cluster, edit <machineKey> configuration so all servers
use the same validationKey and validation algorithm. AutoGenerate cannot
be used in a cluster.

2) Viewstate can only be posted back to the same page.

3) The viewstate for this page might be corrupted.


Is your site serving from a Web farm? Are you dynamically adding controls
or mucking with the __VIEWSTATE hidden form field in any way?


.::wireless::. said:
Hi all,

Does anybody know what could be the reason of the following error?

Thanks.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Unable to validate data.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Unable to validate data.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[]
modifier, Int32 start, Int32 length, Int32& dataLength) +196
System.Web.UI.LosFormatter.Deserialize(String input) +60

[HttpException (0x80004005): Authentication of viewstate failed. 1) If
this is a cluster, edit <machineKey> configuration so all servers use the
same validationKey and validation algorithm. AutoGenerate cannot be used
in a cluster. 2) Viewstate can only be posted back to the same page. 3)
The viewstate for this page might be corrupted.]
System.Web.UI.LosFormatter.Deserialize(String input) +118
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +102

[HttpException (0x80004005): Invalid_Viewstate
Client IP: 85.96.12.54
Port: 1916
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
ViewState:
dDw2MTUzOTgyODI7dDw7bDxpPDE+Oz47bDx0PDtsPGk8Mz47aTw3PjtpPDk+O2k8MTE+O2k8MTU+O2k8MTk+O2k8MjM+O2k8Mjc+O2k8MzU+O2k8Mzc+O2k8Mzk+O2k8NDc+O2k8NDk+O2k8NTE+O2k8NjE+Oz47bDx0PHA8cDxsPFRleHQ7PjtsPDIwMDQxMTQyMDE2NDU4NTs+Pjs+Ozs+O3Q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BsYW0gMzYgYWRldCDDvHLDvG4gc2lwYXJpxZ9pIGFsxLFuZMSxLjtoYXlhdCBlY3phbmVzaSB6aXlhcmV0IG5va3Rhc8SxbmRhIGthbGZhIGFsaSBiZXkgaWxlIGfDtnLDvMWfw7xsZMO8LiAyMjYyNzYwOTIga2FyxZ/EsWzEscSfxLFuZGEgdG9wbGFtIDM2IGFkZXQgw7xyw7xuIHNpcGFyacWfaSBhbMSxbmTEsS47PjtAPGVtaW4gaXRyaXlhdCBkZXBvc3Ugeml5YXJldCBub2t0YXPEsW5kYSBhc2xhbiDDtnphc2xhbiBpbGUgZ8O2csO8xZ/DvGxkw7wuIDExMzEzODAzNTIga2FyxZ/EsWzEscSfxLFuZGEgdG9wbGFtIDIxNiBhZGV0IMO8csO8biBzaXBhcmnFn2kgYWzEsW5kxLEuO8O2dsO8bsOnIGVjemFuZXNpIHppeWFyZXQgbm9rdGFzxLFuZGEgZG/En2FuIGbEsXJ0xLFuYSBpbGUgZ8O2csO8xZ/DvGxkw7wuIDIyNjI3NjA5MiBrYXLFn8SxbMSxxJ/EsW5kYSB0b3BsYW0gMzYgYWRldCDDvHLDvG4gc2lwYXJpxZ9pIGFsxLFuZMSxLjtoYXlhdCBlY3phbmVzaSB6aXlhcmV0IG5va3Rhc8SxbmRhIGthbGZhIGFsaSBiZXkgaWxlIGfDtnLDvMWfw7xsZMO8LiAyMjYyNzYwOTIga2Fyx
Z/EsWzEscSfxLFuZGEgdG9wbGFtIDM2IGFkZXQgw7xyw7xuIHNpcGFyacWfaSBhbMSxbmTEsS47Pj47Pjs7Pjs+Pjs+Pjs+jLMi9JBCkgpee5ZEW3ouNbAsvv4=
Http-Referer: http://dev.sidenet.net/trust/satisform.aspx
Path: /trust/satisform.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +448
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +447


--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!
 

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

Top