Application Insights DLL Reference Issue for Codeless Monitoring
Hello!
Overnight a few days ago one of our applications hosted in Azure reinitialized and started encountering the following error:
Unable to load one or more of the requested types.
Could not load file or assembly 'Microsoft.ApplicationInsights.AspNetCore, Version=2.1.1.0, Culture=neutral, PublicKeyToken=123456...'. The system cannot find the file specified.
The line that it is failing on specifically is a GetAssemblies() call resulting in a ReflectionTypeLoadException error.
The forum post describing something closest to our issue that I could find was this one: https://github.com/microsoft/ApplicationInsights-Home/issues/459
We are utilizing the codeless App Insights module on the app service. The timing seems a bit odd as we did not perform a build/release.
Thank you!