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.

Missing Type in ServiceCollection when upgrading Microsoft.ApplicationInsights.AspNetCore 2.1.0 to 2.1.1 #502

@SergeyKanzhelev

Description

@SergeyKanzhelev

Moved from https://github.com/Microsoft/ApplicationInsights-Home/issues/139

I have a unittest that tries to create all services in my service collection.

While populating the service collection I call

services.AddApplicationInsightsTelemetry( configuration );

in 2.1.0 i could create all services application insights adds

in 2.1.1 i get

System.InvalidOperationException : failed to create Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet

System.InvalidOperationException : Unable to resolve service for type 'System.Text.Encodings.Web.JavaScriptEncoder' while attempting to activate 'Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet'.

am i supposed to call another add stuff method or should this type be registered in AddApplicationInsightsTelemetry

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions