Skip to content
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

DryIoc Exception After Upgrading to .NET 6 and V4 #8330

Closed
roend83 opened this issue Apr 27, 2022 · 3 comments
Closed

DryIoc Exception After Upgrading to .NET 6 and V4 #8330

roend83 opened this issue Apr 27, 2022 · 3 comments
Assignees

Comments

@roend83
Copy link

roend83 commented Apr 27, 2022

I'm getting the following error after upgrading my .NET 5 V3 in-process function to a .NET 6 V4 in-process function:

Scope disposed{no name} is disposed and scoped instances are disposed and no longer available.

This happens when I register a singleton object that accepts an IServiceProvider as a dependency that when invoked tries to create an instance of a service registered as scoped. The first call to this works. Every subsequent call fails with the error above. I've attached a small function app that reproduces this error.

V4BugRepro.zip

@liliankasem
Copy link
Member

liliankasem commented Apr 27, 2022

@brettsam is this related to this issue #7874? If so the fix made to address it (#8170) should be released in the next version of the host

@roend83
Copy link
Author

roend83 commented Apr 27, 2022

It sounds like the same issue. I didn't find it because I was searching for the error message.

@v-bbalaiagar
Copy link

Closing this issue as its tracked in the above mentioned issue. Please feel free to reach back to us in case of any further queries related to this issue.

@ghost ghost locked as resolved and limited conversation to collaborators Jun 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants