Link to home
Start Free TrialLog in
Avatar of rocketdoctor
rocketdoctor

asked on

ViewState problems on webfarm

I have a webfarm where the load balancer is not enforcing stickyness due to this I get occasional errors "Unable to validate data."   I believe this is the view state and I have tried several things to reduce this error  I have

1.  Set the Viewstatmac to use the same SHA1 key on all machines  in WebConfig
2. Set The Viewstatmac to be disabled  in WebConfig
l3. astly I just disabled the viewstate  in WebConfig using       
<pages enableViewState="false" enableViewStateMac="false" />

each method yeilded the same amount of occasional errors.  Does Viewstate implemented on page level override the application level.

Suggestions on resolving this problem are greatly appreciated.



Avatar of gregoryyoung
gregoryyoung
Flag of Canada image

umm occasionally the viewstate is mangled when being sent back up. how often is this happenning?
ASKER CERTIFIED SOLUTION
Avatar of Rodney Helsens
Rodney Helsens

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rocketdoctor
rocketdoctor

ASKER

I have read the microsoft artical and that doesn't resolve the problem just gives you more information to troubleshoot,  Ive identified that it is a viewstate issue,  just trying to figure out how to make it work properly on Web Farms I would rather keep it on but I will turn it off if I have too?  however turning it off on in the WebConfig does not seem to be workng

Its not happing alot maybe 10 times an hour out of a couple thousand hits.

out of curiosity is the actual exception being thrown viewstate is corrupt or invalid?
it the following error message which the hotfx in the link above produces

ERROR MESSAGE: Unable to validate data.

have you set the machineKeys to the web farm, to be the same instead of the default.

<machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="SHA1"/>

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial