Application Insights DLL Reference Issue for Codeless Monitoring

Scott R 1 Reputation point
2020-08-25T20:55:24.153+00:00

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!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,812 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,911 questions
{count} votes