-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET March 2022 Update - .NET 6.0.3, .NET 5.0.15, and .NET Core 3.1.23 #7259
Comments
Hi team, after upgrading to 6.0.3(vs2022 17.1.1), I got an error at Microsoft.Extensions.Configuration.ReferenceCountedProviderManager.AddProvider(IConfigurationProvider provider) |
Also having the same issue as @frankyuan |
@frankyuan I don't suppose you are using Convey? |
Repro solution here: |
Also having the same issue since 8/3/2022 on our build servers: OneTimeSetUp: System.ObjectDisposedException : Cannot access a disposed object. It is an integrationtest that is bootstrapping our api using the WebApplicationFactory class We do not use Convey or Scrutor like in dotnet/aspnetcore#40614 Work-around: manualy removed the 6.0.201 sdk, and the 6.0.3 Aspnetcore.App & NetcoreApp from our build server |
@Pilchie @dougbu , can you take a look at the above reports? ah, Looks like Brennan has the repro worked out at dotnet/aspnetcore#40614 (comment) |
Highlighting @BrennanConroy's workaround:
builder.Services.AddConvey(configuration: builder.Configuration); |
That workaround is very specific to the Convey usage, not everyone who is hitting this issue is using Convey. |
Agree, we don't use Convey but still run into this issue. |
@rafikiassumani-msft can you take a look here? |
@rafikiassumani-msft - possibly related to dotnet/runtime#63816? |
There is a change coming in 6.0.4 that fixes at least one case of this issue. If other folks like @frankyuan and @bc3 could provide minimal repro apps so we can make sure we cover everything that would be helpful. Let's continue the discussion at dotnet/aspnetcore#40614 |
@Pilchie after looking at the exception that's being thrown when adding Convey, it appears that |
Yes, this seems to work around the issue in my repro app. |
@rafikiassumani-msft , i finally got around to reproduce the bug. I got a solution with integration test ready for you to test the issue for us the issue was throw eventually by this code:
it is an extension method from package: |
Looks like the Kubernetes issue was fixed back in August microsoft/ApplicationInsights-Kubernetes#237. Update your app to version 2.0.2 to fix it. And it's the same root cause as all the other repros on this thread. Building the service provider early and then disposing it. |
I will lock conversations on this announcement. Let's continue the discussion at dotnet/aspnetcore#40614. |
Closed in favor of #7362 |
Release Notes
6.0.3
5.0.15
3.1.23
Please report any issues you find either by responding to this issue, creating a new issue or creating a new issue in one of the following repos:
Note: This list refers to the Microsoft-provisioned feeds (packages.microsoft.com) and does not in any way represent direct availability in distros (eg RHEL, Fedora).
Known Issues
If there are any more issues with this release we will track them here and check issues off as they're resolved. See the linked issues for details on progress and resolution details.
The text was updated successfully, but these errors were encountered: