469,133 Members | 1,032 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,133 developers. It's quick & easy.

Viewstate problems in web farm

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 like this.
Server Error in '/ViewState' Application.
----------------------------------------------------------------------------
----
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.LoadPageStateFromPersistenceMed ium() +151
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +423

Thanks,

Venkat
Nov 18 '05 #1
1 1779
your servers must share the same machineKey (or you can diable
enableViewStateMac).

http://www.eggheadcafe.com/articles/20030514.asp

http://msdn.microsoft.com/library/de...teMacTopic.asp

Viewstate's are encrypted with a unique key which prevents them from being
tampered with (well, helps prevent). Each of your servers is using a unique
key (machineKey) and thus can't decode/encode each other's viewstate without
thinking someone is trying to hack it.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"S S Venkatesh" <s_*************@hotmail.com> wrote in message
news:ew**************@TK2MSFTNGP09.phx.gbl...
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 like this.
Server Error in '/ViewState' Application.
-------------------------------------------------------------------------- -- ----
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.LoadPageStateFromPersistenceMed ium() +151
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +423

Thanks,

Venkat

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Lloyd Dupont | last post: by
6 posts views Thread by scottrm | last post: by
1 post views Thread by =?Utf-8?B?VmlqYXkgQ2hpa3Rl?= | last post: by
3 posts views Thread by sck10 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.