Relative Content

Tag Archive for asp.net-core.net-8.0

How can I get my .NET 8 web app to properly decrypt data protected when it was running on .NET 6?

I have an ASP.NET Core web application that uses data protection to encrypt/decrypt values stored in a database. The app was original written in .NET 3.1, later migrated to .NET 6, and now to .NET 8. The problem I am having is that after upgrading to .NET 8, the app encounters an error trying to decrypt the previously stored values. Reverting to .NET 6 enables the decryption to work correctly again.