Skip to content

Instantly share code, notes, and snippets.

@anilsingh581
Created August 4, 2014 08:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anilsingh581/2e4768e9bd96d8cdbf77 to your computer and use it in GitHub Desktop.
Save anilsingh581/2e4768e9bd96d8cdbf77 to your computer and use it in GitHub Desktop.
I have AntiForgery validate issues .
Error :
The anti-forgery token could not be decrypted. If this application is hosted by a Web Farm or cluster, ensure that all machines are running the same version of ASP.NET Web Pages and that the <machineKey> configuration specifies explicit encryption and validation keys. AutoGenerate cannot be used in a cluster.
code:
AntiForgery.Validate(cookieToken, formToken);
@anilsingh581
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment