-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
troubleshooting sudden ArgumentException at TryInterpretSingletonAndUnwrapContainerException #635
Comments
What version are you using? |
I'm using version 6.2.0. I finally figured out the culprit. In my Startup.cs 's
That's based on a package When I'll give the preview a try - just found it very confusing that it errors out in what seems to be DryIoc. |
@ssteiner You are getting the errors because it resolves (creates or gets) service via DryIoc. |
I'm using a mix of MS and DryIOC in my app. I've recently gone through some refactoring, and just before rolling out in prod, I noticed I'm getting an
ArgumentException
atTryInterpretSingletonAndUnwrapContainerException
.The exception happens when I start my app host, so it's somewhere deep down in the MS app host stack, no chance to figure out where.
The full stacktrace is
The exception message is
Specified argument was out of the range of valid values. (Parameter 'value')'
which isn't particularly helpful (name of the argument? type? value?)Line 578 is the call to
host.Start()
and the host is build like this (abbreviated)Is there any chance to figure out what kind of type it was trying to resolve and with what arguments?
The text was updated successfully, but these errors were encountered: