Closed IvanJosipovic closed 11 months ago
I have the same issue using dotnet 8.0.100
[07:16:07 DBG] Starting web application...
[07:16:10 FTL] Application terminated unexpectedly
System.AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: BlazorApplicationInsights.Interfaces.IApplicationInsights Lifetime: Singleton ImplementationType: BlazorApplicationInsights.ApplicationInsights': Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'BlazorApplicationInsights.Interfaces.IApplicationInsights'.)
---> System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: BlazorApplicationInsights.Interfaces.IApplicationInsights Lifetime: Singleton ImplementationType: BlazorApplicationInsights.ApplicationInsights': Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'BlazorApplicationInsights.Interfaces.IApplicationInsights'.
---> System.InvalidOperationException: Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'BlazorApplicationInsights.Interfaces.IApplicationInsights'.
Hello Ivan, the new version works great. Thank you for your quick response, I appreciate it.
I will leave the ticket open since I'm not the creator of it.
Discussed in https://github.com/IvanJosipovic/BlazorApplicationInsights/discussions/247