473,503 Members | 11,435 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ViewState corrupted?

My site is randomly firing off a "ExceptionHttpException : Unable to
validate data. " error on some of its forms.
-------
HttpException : Unable to validate data.
http://www.developerfusion.co.uk/Mem...te/EditProfile .aspx (Referred
by http://www.developerfusion.co.uk/Mem...te/EditProfile .aspx)
at System.Web.Configuration.MachineKeySection.GetDeco dedData(By te[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString)
-----------
I am also able to reproduce this error at one of our stores machines,
meaning all of the computers at that location return this error for one
particular application. The other application seem to randomly return this
error. The site is not running on a web farm and I've tried the standard
solutions of specifying a fixed machine validation/encryption key, and I've
also tried disabling the view state mac entirely, but the problem persists.

This application does not have any Server.Transfers in it, so I've ruled
that one out. All post's are done within the same page and then upon
success response.redirect is used to send the user to the next page.

Does anyone have any ideas what setting might be triggering this? Could it
be that my viewstate is corrupted for this application, and if so, how do I
fix it?

Thanks!
Velvet
Sep 12 '07 #1
3 2004
check if the proxy server is truncating the viewstate. can happen if its
over 2k.

-- bruce (sqlwork.com)

Velvet wrote:
My site is randomly firing off a "ExceptionHttpException : Unable to
validate data. " error on some of its forms.
-------
HttpException : Unable to validate data.
http://www.developerfusion.co.uk/Mem...te/EditProfile .aspx (Referred
by http://www.developerfusion.co.uk/Mem...te/EditProfile .aspx)
at System.Web.Configuration.MachineKeySection.GetDeco dedData(By te[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString)
-----------
I am also able to reproduce this error at one of our stores machines,
meaning all of the computers at that location return this error for one
particular application. The other application seem to randomly return this
error. The site is not running on a web farm and I've tried the standard
solutions of specifying a fixed machine validation/encryption key, and I've
also tried disabling the view state mac entirely, but the problem persists.

This application does not have any Server.Transfers in it, so I've ruled
that one out. All post's are done within the same page and then upon
success response.redirect is used to send the user to the next page.

Does anyone have any ideas what setting might be triggering this? Could it
be that my viewstate is corrupted for this application, and if so, how do I
fix it?

Thanks!
Velvet

Sep 13 '07 #2
This is not going through proxy and the view state is very small compared to
other applications. Additionally, the = terminator at the end of the
viewstate is in the error message.

Any other ideas?

Velvet

"bruce barker" <no****@nospam.comwrote in message
news:uW**************@TK2MSFTNGP03.phx.gbl...
check if the proxy server is truncating the viewstate. can happen if its
over 2k.

-- bruce (sqlwork.com)

Velvet wrote:
>My site is randomly firing off a "ExceptionHttpException : Unable to
validate data. " error on some of its forms.
-------
HttpException : Unable to validate data.
http://www.developerfusion.co.uk/Mem...te/EditProfile .aspx
(Referred
by http://www.developerfusion.co.uk/Mem...te/EditProfile .aspx)
at System.Web.Configuration.MachineKeySection.GetDeco dedData(By te[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString)
-----------
I am also able to reproduce this error at one of our stores machines,
meaning all of the computers at that location return this error for one
particular application. The other application seem to randomly return
this error. The site is not running on a web farm and I've tried the
standard solutions of specifying a fixed machine validation/encryption
key, and I've also tried disabling the view state mac entirely, but the
problem persists.

This application does not have any Server.Transfers in it, so I've ruled
that one out. All post's are done within the same page and then upon
success response.redirect is used to send the user to the next page.

Does anyone have any ideas what setting might be triggering this? Could
it be that my viewstate is corrupted for this application, and if so, how
do I fix it?

Thanks!
Velvet
Sep 13 '07 #3
I think I figured it out. I was thinking back to the last change I had made
to the pages and it was adding the Google Analytics js to the pages. I took
it off and all the pages started working perfectly. The only think I can
think of is that the google site cannot be accessed from our store locations
and so it was playing havoc with our view state.

I will have to do more testing... I have the google script on the page in a
User control and I show or hide various scripts depending on the server that
is executing the code so that I can tell which server was accessed. I'm
wondering if it is because it is in this control or if it is the google link
itself.

I'll report mroe when I have more.

Velvet

"Velvet" <MS***********@nospam.nospamwrote in message
news:er**************@TK2MSFTNGP02.phx.gbl...
My site is randomly firing off a "ExceptionHttpException : Unable to
validate data. " error on some of its forms.
-------
HttpException : Unable to validate data.
http://www.developerfusion.co.uk/Mem...te/EditProfile .aspx
(Referred
by http://www.developerfusion.co.uk/Mem...te/EditProfile .aspx)
at System.Web.Configuration.MachineKeySection.GetDeco dedData(By te[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString)
-----------
I am also able to reproduce this error at one of our stores machines,
meaning all of the computers at that location return this error for one
particular application. The other application seem to randomly return
this error. The site is not running on a web farm and I've tried the
standard solutions of specifying a fixed machine validation/encryption
key, and I've also tried disabling the view state mac entirely, but the
problem persists.

This application does not have any Server.Transfers in it, so I've ruled
that one out. All post's are done within the same page and then upon
success response.redirect is used to send the user to the next page.

Does anyone have any ideas what setting might be triggering this? Could
it be that my viewstate is corrupted for this application, and if so, how
do I fix it?

Thanks!
Velvet


Sep 14 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1776
by: Anup Jishnu | last post by:
Hi, I have installed ASP.Net application on a system. When accessing the Application from within the LAN, it works fine. However, when I access the application from the Internet, some pages...
4
1468
by: Rob Reckless | last post by:
I'm creating a web application using c# and keep getting the following error: The viewstate is invalid for this page and might be corrupted. Description: An unhandled exception occurred...
2
1760
by: sarvjeet Saini | last post by:
My application is working fine on our local server.We tried on two local servers for testing purpose. But when we host on our main server ,we got the following error: some it work Fine but not...
2
374
by: Thiago Temple | last post by:
I have a site that is is a web farm with 2 servers using road robin load balance... Sometimes when I submit a form the following error shows up. Does anyone know what to do?? I'm using the...
2
2579
by: Mike | last post by:
hi to all does any body know or receive this message before and how i can repare this: The viewstate is invalid for this page and might be corrupted. thank's Mike
5
2076
by: Anup Jishnu | last post by:
Hi, I have installed ASP.Net application on a system. When accessing the Application from within the LAN, it works fine. However, when I access the application from the Internet, some pages...
1
1959
by: Mind Dragon | last post by:
I have an ASP application that works fine locally but when it's uploaded occasionally, I get viewstate errors. Another thing is that the viewstate for that page is disabled. There are cases where I...
1
1923
by: S S Venkatesh | last post by:
Hi, I'm involved in a ASP.NET web project with a web farm and load balancing(windows server 2003 ) with no afinity (no sticky sessions) and i am facing problems in view state. I get an error...
2
1308
by: TS | last post by:
I have some inner exceptions on dev and production server saying: Invalid character in a Base-64 string. OR Invalid Length of a Base-64 string or something like that. I cannot recreate this...
7
2113
by: GS | last post by:
Hello, I'm receiving The state information is invalid for this page and might be corrupted error message when running code below. This happens on second post back. Why is it happening? My...
0
7193
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5562
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
371
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.