Session stored in SQL Server - Load Balanced Environment RRS feed

  • Question

  • User-1799680607 posted

    We are storing the session in the sql database. We have a Load Balanced Environment.

    <machineKey validationKey="somevalidationkey" decryptionKey="somedecryptionkey" validation="SHA1" decryption="AES" />
      <sessionState mode="SQLServer" sqlConnectionString="Someconnectionstring" timeout="120" cookieless="false" allowCustomSqlDatabase="true" />

    I get this 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 & validation algorithm. AutoGenerate cannot be used in a cluster." Thanks.</machinekey>

    Thursday, August 4, 2011 12:15 PM

All replies