Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

Unable to use the ApplicationInsights.AspNetCore with Microsoft.Extensions.Logging of version higher than 1.1.2 #756

@snowpardx

Description

@snowpardx

Hello,
I attempting to use Microsoft.ApplicationInsights.AspNetCore package with up-to-date Microsoft.Extensions.Logging package. Unfortunately when Microsoft.Extensions.Logging of version higher than 1.1.2(e.g. 2.1.1) in use there is runtimer error caused by old version of Microsoft.Extensions.Configuration which Microsoft.ApplicationInsights.AspNetCore want.

Repro Steps

I created small sample which demonstrates the behaviour above. https://github.com/snowpardx/app-insights-failure/tree/master

And if try to run, we get the following exception
image

If switch to https://github.com/snowpardx/app-insights-failure/tree/no-error-if-using-old-package
Where only difference is
image

The runtime error gone.

Could you please check it out and provide the guidance how to use the package with recent versions of Microsoft.Extensions.Logging?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions