Aes.Create() crashing on Windows Server 2022

New Contributor

Has anyone encounter problems with Aes.Create() throwing an exception "Exception has been thrown by the target of an invocation".


I just migrated to a new server with Windows Server 2022 on it and all of a sudden I am getting this error thrown. This is using ASP.NET 4.8 Framework. 

1 Reply

Hi @codesmithery765,

Thanks for posting your issue here.

However this platform is used for how-to discussions and sharing best practices for building any app with .NET.Since your issue is a technical question, welcome to post it in Microsoft Q&A forum, the support team and communities on Microsoft Q&A will help you for any technical questions.
Besides, it will be appreciated if you can share it here once you post this technical question Microsoft Q&A.
Best Regards,
Lan Huang