Reputation: 13186
I have the following configuration in place, but no traces are going into Application Insights (otherwise Application Insights is working fine for other logging and the Azure diagnostics listener is also working and capturing the traces). Am I doing something wrong?
<system.diagnostics>
<trace autoflush="true" indentsize="0">
<listeners>
<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics">
</add>
<add name="myAppInsightsListener" type="Microsoft.ApplicationInsights.TraceListener.ApplicationInsightsTraceListener, Microsoft.ApplicationInsights.TraceListener" />
</listeners>
</trace>
</system.diagnostics>
Upvotes: 11
Views: 7296
Reputation: 6006
I updated my appinsight nuget packages to latest, which updated ApplicationInsights.config and everything worked fine.
Delete may not be neccessary. Try updating your appinsight nuget packages first without uninstalling the appinsight packages and if does not work then you can do what is accepted as answer.
Upvotes: 0
Reputation: 156
I had the same problem.
My steps to resolve after my discussion in the comments here were:
Hope this helps.
Upvotes: 12