Claudio Saccella
Claudio Saccella

Reputation: 1

ASP.NET MVC Anti Forgery Token - Apps in same IIS Server

I have more than one app running in a IIS and I get the following 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 configuration specifies explicit encryption and validation keys.

That occurs when I open a web app, for example http://localhost:90 and logging into it. Later, I open a second tab (http://localhost:91) and logging into the web app. After that, I return to the first tab and press Log Off (or any other post to any other form) and I get the error.

Upvotes: 0

Views: 742

Answers (0)

Related Questions