The viewstate is invalid for this page and might be corrup


J

Jason

Can anybody help on the following error :


The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid for
this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +150
.................................



Jason
 
Ad

Advertisements

G

Guest

Is there any JavaScript that might be altering values that the server doesn't
know about?
 
J

Jason

I think no....


Ken Cox said:
Is there any JavaScript that might be altering values that the server
doesn't
know about?

Jason said:
Can anybody help on the following error :


The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid for
this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +150
.................................



Jason
 
G

Greg Burns

I've read different theories on this. One says that it is caused when you
have enabledViewStateMac= "true" in web.config (the default) and you cause a
postback after session expires.

I've added
<system.web>
....
<pages enableViewStateMac="false" />
</system.web>

to my web.config and I've seen this error much, much less frequently in my
logs.

Just my .02
Greg
 
J

Jason

I have try setting enableViewStateMac="false" but error still came out....



Greg Burns said:
I've read different theories on this. One says that it is caused when you
have enabledViewStateMac= "true" in web.config (the default) and you cause
a postback after session expires.

I've added
<system.web>
...
<pages enableViewStateMac="false" />
</system.web>

to my web.config and I've seen this error much, much less frequently in my
logs.

Just my .02
Greg

Jason said:
Can anybody help on the following error :


The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid for
this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +150
................................



Jason
 
G

Greg Burns

Give us some more details. Does this happen on your development PC or when
you post it to your server?

Does it happen immediately? Is it just one page that has the problem?

Does this help any...
http://support.microsoft.com/default.aspx?scid=kb;en-us;323744

Greg

Jason said:
I have try setting enableViewStateMac="false" but error still came out....



Greg Burns said:
I've read different theories on this. One says that it is caused when
you have enabledViewStateMac= "true" in web.config (the default) and you
cause a postback after session expires.

I've added
<system.web>
...
<pages enableViewStateMac="false" />
</system.web>

to my web.config and I've seen this error much, much less frequently in
my logs.

Just my .02
Greg

Jason said:
Can anybody help on the following error :


The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid
for this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +150
................................



Jason
 
Ad

Advertisements

J

Jason

First of all it didn't happen in my developement PC and it only happen in my
server after i uploaded into it..
It started happen when i open the page with nearly 500 controls which
include <asp:button> and <asp:checkbox>
It also happen in the page which only has around 20 controls..
Please help.. Even though i upgraded the dot net framework 1.1 SP1 in the
server but it still happen...


Greg Burns said:
Give us some more details. Does this happen on your development PC or
when you post it to your server?

Does it happen immediately? Is it just one page that has the problem?

Does this help any...
http://support.microsoft.com/default.aspx?scid=kb;en-us;323744

Greg

Jason said:
I have try setting enableViewStateMac="false" but error still came out....



Greg Burns said:
I've read different theories on this. One says that it is caused when
you have enabledViewStateMac= "true" in web.config (the default) and you
cause a postback after session expires.

I've added
<system.web>
...
<pages enableViewStateMac="false" />
</system.web>

to my web.config and I've seen this error much, much less frequently in
my logs.

Just my .02
Greg

Can anybody help on the following error :


The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid
for this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +150
................................



Jason
 
Ad

Advertisements

G

Guest

Hi,
I have the same error when running my application on my local PC or Web
server. My javascript does change the action of the form when being
submitted, as I have to submit the same page to various other pages depending
on conditions.
Is there any fix so that I can change the form values using Javascript and
avoid this error?
Thanks,
Rajiv

Ken Cox said:
Is there any JavaScript that might be altering values that the server doesn't
know about?

Jason said:
Can anybody help on the following error :


The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid for
this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +150
.................................



Jason
 

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