How to configure machineKey

Discussion in 'ASP.NET 4.0 RC Beta [Closed]' started by erlichmen, Feb 19, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,

    I'm getting the following error from pages that uses AntiForgeryToken:

    "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 guess that I need to configure machineKey in web.config, but with which values, what are the setting of validationKey on your end?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page