Aes.Create() crashing on Windows Server 2022

Matt 0 Reputation points
2023-01-24T15:11:46.67+00:00

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. 

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,395 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Matt 0 Reputation points
    2023-02-03T14:17:49.98+00:00

    Hi Jack,

    It is ASP.NET framework 4.81 and is happening within a WCF web service. It is a strange error in the I am using AES.Create() and it is throwing an error internally which never happened on the Windows 2016 server. It is not consistent either.

    The only thing I can think of is that the web service is getting called and there is another instance running AES.Create() doesn't like that.