Answered Validation of viewstate MAC failed - VS 2011 Beta

  • Tuesday, April 24, 2012 10:22 AM
     
      Has Code

    Hi All,

    I faced this issue in VS 2011 Beta:

    Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

    It's in my laptop (there's no Web Farm configuration). I've set this in my web.config (I'll need it in LIVE Web Farms):

        <machineKey validationKey="..." 
                    decryptionKey="..." 
                    validation="HMACSHA512" 
                    decryption="AES"/>

    For security reason I don't want to turn the enableViewStateMAC property off.

    Is it because of VS 2011 Beta or I missed something?!

    Thanks,

    LM

    • Moved by lucy-liu Tuesday, May 01, 2012 5:22 AM it is a asp.net issue (From:Visual Studio Editor)
    •  

All Replies

  • Wednesday, April 25, 2012 8:30 AM
     
     Answered

    lazymocking, it is a asp.net issue, i think you should post it to http://www.asp.net/ forum , there is more related expert in this forum, you will get a better reply.

    • Marked As Answer by LazyMocking Monday, June 04, 2012 2:37 PM
    •