locked
Validation of viewstate MAC failed. RRS feed

  • Question

  • User-909867351 posted

    Hi

    got

    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.

    Here is my web.config

    <configuration>
      
     <system.web>
            <customErrors mode="Off"/>
       <machineKey decryption="AES" decryptionKey="D601935ED3A16D3E14sdasdaD6B1C9D00118371CF5E70C7B6E115" validation="HMACSHA256" validationKey="D091asdasdasdasdasdB9D8FF03999EFE6F9E4318599FF5892303B45EF2F3E0196A2BAF818F246AB3B752D97A69940477C11B9916828D65E764E0C" />
        </system.web>
        <connectionStrings>
            <add name="ConnectionString" connectionString="Dsn=correspondencia;uid=progr_cartas;pwd=Inf550#2010"
                providerName="System.Data.Odbc" />
        </connectionStrings>
        <system.web>
          <compilation debug="true" targetFramework="4.6.1"/>
          <httpRuntime targetFramework="4.6.1"/>
        </system.web>
        <system.codedom>
            <compilers>
                <compiler language="c#;cs;csharp" extension=".cs"
                    type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                    warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701"/>
                <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
                    type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                    warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
            </compilers>
        </system.codedom>
    
    </configuration>
    

    Got my validation Key as the article and get the same error. What happened?

    PS: The error seems to occur when i use https instead of http

    Monday, September 24, 2018 8:51 AM

Answers

  • User-909867351 posted

    PS: The error seems to occur when i use https instead of http

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 24, 2018 10:09 AM