Validation of viewstate MAC failed

Discussion in 'General troubleshooting' started by richof, Oct 19, 2011.

  1. hello,

    I'm deploying an MVC2 App and I'm having this problem.

    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.


    I already saw this thread:
    http://community.discountasp.net/showthread.php?t=12941
    http://community.discountasp.net/showthread.php?t=2719
    http://community.discountasp.net/showthread.php?t=9605

    I already tried all the solutions mentioned in this thread's but nothing resolves my problem.
    Here is My web.config


    <machineKey validationKey="88229FF53AE13DF382843079C45CABEE91CC97DCD0A780516C84026FE9939B42EEDD88AE81F05CF663D1EEF0C77DAAA888C9B42181FDDFDB2C1D17C0A297FBE4" decryptionKey="12D2245EC89F731BA61897653CD8851C49BC857DB3F37B69D6D790F5B9DE31AD" validation="SHA1" decryption="AES" />

    <pages validateRequest="false"
    pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
    pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
    userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" enableViewStateMac="true">

    <authentication mode="Forms">
    <forms loginUrl="~/Account/LogOn" timeout="2880" />
    </authentication>


    Could you help me please.
    Thanks a Lot
     
  2. do you have a URL to see the error page?
     
  3. Hello @jayc

    Apparently the problem was my navigator, once I deleted the cookies, the problem dissapeared, by now of course.
    Thanks for your interest
    Best regards
     
  4. mjp

    mjp

    Glad you got the problem worked out.
     

Share This Page