Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Installed on Win 10 IIS - getting [DefaultAntiforgery] error >> The antiforgery token could not be decrypted.

$
0
0

Hi All,

I have a Core 2.2 application that works without any issues on all development environments. I have to install the web application on a QA machine (Win 10 -- IIS) for testing, which I did. I am using the local machine and in the hosts file I have mapped the site to 127.0.0.1. On our development machines the installation works and all pages on the web app are function properly. However on the QA machine, the web application comes up but I get an error right away.

I think I need to install something else. I did install the Core hosting bundle, but I think I am missing something else. This is our Core application, and we are semi new to installing Core application on Windows IIS.

If anybody has any suggestions I would greatly appreciate it. 

Thanks!

BTW - This is the complete error that I am getting...

[2019-03-22 12:11:07,918] [ERROR] [ 6] [DefaultAntiforgery] An exception was thrown while deserializing the token.
Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The antiforgery token could not be decrypted. ---> System.Security.Cryptography.CryptographicException: The key {6214cea0-77c2-4fa0-86a1-909aee39f8b6} was not found in the key ring.
at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status)
at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.DangerousUnprotect(Byte[] protectedData, Boolean ignoreRevocationErrors, Boolean& requiresMigration, Boolean& wasRevoked)
at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData)
at Microsoft.AspNetCore.Antiforgery.Internal.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)
--- End of inner exception stack trace ---
at Microsoft.AspNetCore.Antiforgery.Internal.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)
at Microsoft.AspNetCore.Antiforgery.Internal.DefaultAntiforgery.GetCookieTokenDoesNotThrow(HttpContext httpContext)


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>