Validation of viewstate MAC failed

Discussion in 'ASP.NET 2.0' started by khaledmorcy, Jan 25, 2009.

  1. Hello ,
    I have an account onDiscountasp.net and after upload my project to the server i have the following error
    "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 have member login in my site and the error occured after login


    * the login information saved on session


    * the error occured after serveral navigation


    * after search on google I have many suggestions all about modify web.config


    1- <pages enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode ="Never" smartNavigation="false" />


    2- Generate static machine keylike <machineKey validationKey="7908FC5DCDEFED0061EFADBEDD0C9E1814D78CFF439C09B007382B92512BE813C1554ECB151C295D4BB6C046C8410813D4010AB78CE893B6940FBDCC1D13614F"


    decryptionKey="2EA5F39C0E6A687D788B158CC2EFDE91C0DE745A156D4E74" validation="SHA1" />
    after making all this modification the problem still exist :-(
    Thanks for your help
     
  2. Bruce

    Bruce DiscountASP.NET Staff

Share This Page