Home > Archive > microsoft.public.cert.exam.mcsd > October 2002 > Help regarding ASP.NET page





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Help regarding ASP.NET page
Maosheng Yao

2002-10-26, 5:23 pm

Hi,

Can anyone give me some hints regarding this? The problem is :
Whenever I click some button in the aspx page, which has been displayed for some time already, I got the following error message.

Thanks in advance,
Yao

Server Error in '/' Application.

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

The View State 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 View State 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 View State is invalid for this page and might be corrupted.]
System.Web.UI.Page. LoadPageStateFromPersistenceMe
dium() +149
System.Web.UI.Page.LoadPageViewState() +16
System.Web.UI.Page.ProcessRequestMain() +418




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

Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288

Zubin A

2002-10-26, 10:23 pm

Hi,

Try setting "EnableViewStateMac" to False (not EnableViewState - but EnableViewStateMac).

This error usually happens if you try and access viewstate of a previous page. the MAC is a hash calculated to ensure the viewstate isn't modified. If you want to access viewstate over numerous pages, you need to turn off this MAC.

You can turn it off by adding "EnableViewStateMac = false" in the page directive.

Zubin

"Maosheng Yao" <cool_yao@hotmail.com> wrote in message news:eJYnUoTfCHA.2368@tkmsftngp10...
Hi,

Can anyone give me some hints regarding this? The problem is :
Whenever I click some button in the aspx page, which has been displayed for some time already, I got the following error message.

Thanks in advance,
Yao

Server Error in '/' Application.

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

The View State 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 View State 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 View State is invalid for this page and might be corrupted.]
System.Web.UI.Page. LoadPageStateFromPersistenceMe
dium() +149
System.Web.UI.Page.LoadPageViewState() +16
System.Web.UI.Page.ProcessRequestMain() +418




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

Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288

Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net