Application Insight is not displaying the server requests data in Azure Application Insight dashboard. During live streaming I have faced the below error.
Microsoft.ApplicationInsights.Web.OperationCorrelationTelemetryInitializer fail with FileNotFoundException on loading Microsoft.AspNet.TelemetryCorrelation, Version 1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
Any idea, how to fix ?
I recently came across this issue when adding App Insight in our web application hosted on Azure Cloud Service (Classic). First i did have to manually add the nuget package Microsoft.AspNet.TelemetryCorrelation as it was not added automatically when i configured the Application Insight. This was not enough i had to make the change in the webconfig file and included integrateMode in the preCondition for the TelemetryCorrelation so it looks like this
<add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" preCondition="integratedMode,managedHandler" />
. When we configure Application Insight it automatically adds this module but with only managedHandler as preCondidition which doesn't work for me.