ViewState problems on webfarm

Posted on 2005-04-21
Last Modified: 2012-06-21
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.

Question by:rocketdoctor
    LVL 37

    Expert Comment

    umm occasionally the viewstate is mangled when being sent back up. how often is this happenning?
    LVL 9

    Accepted Solution

    MS offers this option for helping you track down the specific cause of the problem, have not used it before.;en-us;831150

    Author Comment

    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.

    LVL 37

    Expert Comment

    out of curiosity is the actual exception being thrown viewstate is corrupt or invalid?

    Author Comment

    it the following error message which the hotfx in the link above produces

    ERROR MESSAGE: Unable to validate data.

    LVL 23

    Expert Comment

    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"/>

    LVL 26

    Assisted Solution

    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. .. mentioned here about the microsoft hotfix .. so did u or did u not try the hotfix?


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now