the aspnet core data protection key stored in contentrootpath does not work on different machines

I have a solution to this problem. I found the answer here:

You have to call SetApplicationName when registering DataProtection:

                .PersistKeysToFileSystem(new DirectoryInfo(keysfolder))

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top