Validation of viewstate MAC failed.

Discussion in 'ASP.NET 2.0' started by Aristotle, Nov 10, 2006.

  1. Setting enableViewStateMac="false" should've fixed it. Maybe your browser is caching the pages somehow. Try clearing your browser's cache.

    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     
  2. I am getting the following error when attempting to login into my application. I don't get the error on my machine on or any of my development servers, I am only getting it on the production server.

    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 did a search on the web and the general consensus is that the following change to the web.config file should fix it but I've had no luck.

    <pages enableViewStateMac="false" enableEventValidation="false" viewStateEncryptionMode="Never" maxPageStateFieldLength="10" validateRequest="false"


    Has anyone else had this error? and if so do they know the fix for it?

    Thanks,

    P.
     

    Attached Files:

  3. Bruce

    Bruce DiscountASP.NET Staff

Share This Page