System.Diagnostics.DiagnosticSource.dll conflicting with Azure App Insights

Michael Bartlett asked on July 10, 2023 01:31

Hi there -

We have deployed a new Kentico Experience 13 site (v13.0.112) into an Azure web app and have been attempting to set up Azure Application Insights, which we saw was not receiving data from the app.

After consultaiton with Microsoft technicians, they confirmed that the presence of System.Diagnostics.DiagnosticSource.dll in the application (in /bin) was the cause of the issue, as it's incompatible with app insights.

On investigation, we noticed this is refrenced in the front-end app but not used, and can be excluded.

On the admin side, the DLL is used for the link checker function. We don't currently use that function and could theoretically exclude/replace it from the application, however we'd prefer not to modify the core appliation.

Do you have any input or suggestions on a method around this?

Recent Answers

Not Applicable answered on July 10, 2023 10:44

With auto-instrumentation you run into conflict with the System.Diagnostics.DiagnosticSource.dll. But configuring it yourself as described in Configure Application Insights for your ASP.NET website shouldn't conflict.

This blog post -although a bit old - might also help, Application Insights for Kentico.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.