locked
Validation of viewstate MAC failed - Error RRS feed

  • Question

  • User589271997 posted

    I don't understand why I have this problem

    Please access to and choose Comprar  works fine

    Please select Amouage from left menu and you get the address

    Now click on Comprar and you will get the Validation of viewstate MAC failed

    Question: Why?

    Thursday, January 24, 2019 2:55 AM

All replies

  • User-1174608757 posted

    Hi cotient12,

    There are several reasons for this error, such as the web application is running in a farm (multi-server environment) or  worker process uses the IIS 7.0 application pool identity.

    I suggest  you to check the link as below, I hope it could help you.

    https://support.microsoft.com/en-sg/help/2915218/resolving-view-state-message-authentication-code-mac-errors

    https://www.codeproject.com/Questions/464873/Validation-of-viewstate-MAC-failed

    Best Regards

    Wei Zhang

    Friday, January 25, 2019 2:00 AM
  • User-909867351 posted

    Hi

    You have to generate one machineKey and write the machineKey in web.config like 

    <system.web>
          <compilation debug="true" targetFramework="4.6.1"/>
          <httpRuntime targetFramework="4.6.1"/>
        <customErrors mode="Off"/>
        <machineKey decryption="AES" decryptionKey="720B491FAE8F328CBFF487769429136AD05499388F323009D3402EA6607DE242" validation="HMACSHA256" validationKey="07719BC44522BFC74E5E7C28289DDC3BC6AE851D29AD3D88D64D50792002B5526E647716B96166494F8CC48BD35AABBF3281CA3FA1803651745AA2D8D0EA3C70"/>
        </system.web>

    Wednesday, February 13, 2019 12:08 PM