viewstate error

  • Thread starter Thread starter MSFT Developer
  • Start date Start date
M

MSFT Developer

What are the causes and ways to resolve the viewstate error in a webfarm.

Platform: win 2k, iis 5.0, .net 1.1

Thank you!
 
Not sure which viewstate error you want to know about, but if you are
talking about a webfarm it is often that the viewstate isn't valid when
your pages postback to a different server than the one that generated
the viewstate. The cause here is that each server gets a different key
for its MachineKey entry and these keys are used to verify the viewstate
has not been tampered with (unless you disable this check by using the
ViewStateMac=false. You can either disable the viewstatemac or you can
go into the machine.config and make sure the entry for both machines'
machinekeys are the same (see the link below).

Here's a blog about disabling the mac:

http://www.dotnetbips.com/displayarticle.aspx?id=183

Here's a microsoft page about the keys:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q323744

Have A Better One!

John M Deal, MCP
Necessity Software
 
Thanks John. Sorry, I forgot to mention that we use sticky. Will your
response is still valid in this scenario?

thanks
 
Back
Top