473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

System.Web.HttpException: The viewstate is invalid for this page and might be corrupted

I've seen several message on newsgroup, but none helped me fixed this damned
problem.

I am not on a load balancing, and the copy in the server is there for ages,
and yet I receive 10 to 20 times a day an email with the same error
happening in various places of my website..

-------------
System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException:
The viewstate is invalid for this page and might be corrupted.
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
at System.Web.UI.Page.LoadPageViewState()
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionSte
p.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
-------

There is no common point between all errors, I'm about to disable viewstate
everywhere because I'm sick and tired to get those.. is there an actual way
to fix that?
Nov 18 '05 #1
2 4231
I had the same problem while developing pages for a Pocket PC
application.

Try setting the enableViewStateMac="False" in your .aspx page.

Make sure you actually include it in the page as the default for this
property seems to be true. (Can either manually include it or change
the property to true and then back to false.)

I can now leave ViewState on and all works ok.

Hope this helps.

"Nicolas LeBlanc" <ni*************@nospam.hotmail.com> wrote in message news:<Oo**************@TK2MSFTNGP09.phx.gbl>...
I've seen several message on newsgroup, but none helped me fixed this damned
problem.

I am not on a load balancing, and the copy in the server is there for ages,
and yet I receive 10 to 20 times a day an email with the same error
happening in various places of my website..

-------------
System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException:
The viewstate is invalid for this page and might be corrupted.
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
at System.Web.UI.Page.LoadPageViewState()
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionSte
p.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
-------

There is no common point between all errors, I'm about to disable viewstate
everywhere because I'm sick and tired to get those.. is there an actual way
to fix that?

Nov 18 '05 #2
This might work, but I'd still like to know what it does...

First thing you see when you look for enableViewStateMac in MSDN is:

This member supports the .NET Framework infrastructure and is not intended
to be used directly from your code.

Without any other explanation!

"Tim Harvey" <ti********@mvm.co.uk> wrote in message
news:e0************************@posting.google.com ...
I had the same problem while developing pages for a Pocket PC
application.

Try setting the enableViewStateMac="False" in your .aspx page.

Make sure you actually include it in the page as the default for this
property seems to be true. (Can either manually include it or change
the property to true and then back to false.)

I can now leave ViewState on and all works ok.

Hope this helps.

"Nicolas LeBlanc" <ni*************@nospam.hotmail.com> wrote in message

news:<Oo**************@TK2MSFTNGP09.phx.gbl>...
I've seen several message on newsgroup, but none helped me fixed this damned problem.

I am not on a load balancing, and the copy in the server is there for ages, and yet I receive 10 to 20 times a day an email with the same error
happening in various places of my website..

-------------
System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: The viewstate is invalid for this page and might be corrupted.
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
at System.Web.UI.Page.LoadPageViewState()
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionSte p.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
-------

There is no common point between all errors, I'm about to disable viewstate everywhere because I'm sick and tired to get those.. is there an actual way to fix that?

Nov 18 '05 #3

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

Similar topics

0
by: Mita | last post by:
I Am trying to post my form on to a second page, but it keeps coming with a, error: Exception Details: System.Web.HttpException: The View State is invalid for this page and might be corrupted. ...
0
by: Jon | last post by:
"the viewstate is invalid for this page and might be corrupted" this error comes up when a user leaves an .aspx page on the browser for a while then comes back to use it. what causes it and how...
5
by: Hardy Wang | last post by:
Hi all: I developed a web site, it passed various testing internally. When I put this site in production, I receive some error reports from this site saying "the viewstate is invalid for this page...
0
by: Trevor Andrew | last post by:
Hi There, I have posted something previously regarding this issue, but I think I have some more concise questions to ask, and would like to get further feedback on this issue. Firstly the...
3
by: Gvnn | last post by:
Hi, I've a little problem, i've an asp.net page, with a runat server form, like this: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="index.aspx.vb" Inherits="indexGstPro"%> <HTML>...
2
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
1
by: dima | last post by:
Hi All, I know some of you had this problem in production. Did anyone find out how to fix this problem or what is the cause of it? System.Web.HttpException: Invalid_Viewstate ...
7
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...
4
by: JamTech | last post by:
The Script Resource and the Web Resource files are generating intermittent errors in my application. I have been trying to chase the cause of the problem but to no avail. I notice that the “d”...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.