Impersonation
1 TopicStatic Constructor Exceptions: A Rare Culprit That Requires App Restarts
If a static constructor throws an exception, the runtime doesn't invoke it a second time, and the type will remain uninitialized for the lifetime of the application domain. So, only way to come out this situation is Application recycle/restarts. Static Constructors - C# Programming Guide - C# | Microsoft Learn This can be a very rare scenario occurring intermittently and can become difficult debug. I have seen this issue happening in WCF or Asp.Net impersonation.4.4KViews2likes0Comments