• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 921
  • Last Modified:

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.

2 Solutions
umm occasionally the viewstate is mangled when being sent back up. how often is this happenning?
Rodney HelsensCommented:
MS offers this option for helping you track down the specific cause of the problem, have not used it before.
rocketdoctorAuthor Commented:
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.

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

out of curiosity is the actual exception being thrown viewstate is corrupt or invalid?
rocketdoctorAuthor Commented:
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"/>

For a Microsoft .NET Framework 1.1 version of this article, see 831150.

Important DO NOT INSTALL this hotfix on a computer that is in a Web farm environment or in a clustered environment unless you are installing this hotfix on every computer in the environment or unless you have installed hotfix 323744 on all the other computers in the environment.

For more information, see "Description of the View State MAC feature" in the "More Information" section.
http://www.kbalertz.com/kb_832183.aspx .. mentioned here about the microsoft hotfix .. so did u or did u not try the hotfix?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now