-
Notifications
You must be signed in to change notification settings - Fork 120
2.7.1 and 2.8.0-beta1 throws NullReferenceException when used together with AspNetCore 3.0 preview8 #957
Comments
Thanks for reporting it and providing stack trace. This is most likely the same as #936 - we'll address it in the next stable release (early October) and we'll do our best to include the fix in the next beta |
Even if sdk does not quite well support 3.0, it should not have crashed/errored user app under any circumstances. However, the above was accidentally overwritten in the perf fixes PR :(
|
Is there a workaround for this? I'm setting up a new project with aspnet core preview8. |
@magnuskarlssonhm No workaround unfortunately. This is being fixed in https://github.com/microsoft/ApplicationInsights-aspnetcore/pull/959/files. It will be part of next beta. |
@magnuskarlssonhm sdk with fix for this issue is released now. |
@cijothomas Thanks! |
Repro Steps
services.AddApplicationInsightsTelemetry();
Actual Behavior
Home page displays error:
Expected Behavior
Normal home page
Version Info
SDK Version: 2.7.1 or 2.8.0-beta1
.NET Core Version: 3.0.0-preview8-013656
How Application was onboarded with SDK: Visual Studio Community 2019 Preview Version 16.3.0 Preview 2.0, Installed NuGets: Microsoft.ApplicationInsights.AspNetCore 2.8.0-beta1
OS: Windows 10 Version 1903
Hosting Info: Running From Visual Studio
The text was updated successfully, but these errors were encountered: