Skip to content

WebAssembly: Aes.Create() throws System.PlatformNotSupportedException #42384

@AliGuemues

Description

@AliGuemues

Hello,

I switched from ASP .NET Core 3.1 to ASP .NET 5 RC-1. I use the current Visual Studio 2019 Preview (Version 16.8.0 Preview 3.0).

I have following issue: I created a Blazor PWA application with AES-Encryption. So everthing works fine in .NET Core 3.1 after the method Aes.Create() is called. By switching to ASP .NET 5 RC-1 I get a System.PlatformNotSupportedException after Aes.Create() is called:

System.Security.Cryptography.Algorithms is not supported on this platform

System.PlatformNotSupportedException: System.Security.Cryptography.Algorithms is not supported on this platform.\n   
at System.Security.Cryptography.Aes.Create()

I already read the breaking changes from .NET Core 3.1 to .NET 5 but dont found anything related to this issue.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions