locked
Validation of viewstate MAC failed. RRS feed

  • Question

  • User932259438 posted

    Hi,

    Constantly I got this: I tried also removed templ folder, I add in web.config machinekey and always is the same 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.

    See http://go.microsoft.com/fwlink/?LinkID=314055 for more information.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: 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.

    See http://go.microsoft.com/fwlink/?LinkID=314055 for more information.

    Source Error:

    [No relevant source lines]


    Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\d2599cec\bd9e78cf\App_Web_login.aspx.cdcab7d2.ys0bsmw8.0.cs    Line: 0

    Stack Trace:

    Saturday, February 3, 2018 12:37 PM

Answers

  • User475983607 posted
    Following the instruction in the error fixes this issue. Double check that added the machine key node to the web.config and turned off auto key generation.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, February 3, 2018 1:06 PM