Over the past couple of days I've observed a significant number of 500's being returned from our web service, and digging into the logs, see these two exceptions occuring:
- System.BadImageFormatException - Bad IL range.
- System.InvalidProgramException - Common Language Runtime detected an invalid program.
I am unable to repro on a local instance, and can't get any further info from Azure. Rebooting the machine and redeploying the code do not help. The set of NuGet packages we use haven't changed in quite some time.
This is a ASP.Net Core app running on .Net Core 2.2, hosted in an Azure App Service.
Any suggestions welcome.