InvalidProgramException / Common Language Runtime detected an invalid program
Just wanted to add my experience for this… In my case, I am hosting my C# Web API on Azure and I encountered this message when trying to log in to my API. I had to go into my Azure management portal (portal.azure.com), go to App Services, choose my Web API program and click Restart … Read more