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

Intermittent Failure During Resolve Process #354

Open
rstallings opened this issue Oct 26, 2021 · 1 comment
Open

Intermittent Failure During Resolve Process #354

rstallings opened this issue Oct 26, 2021 · 1 comment

Comments

@rstallings
Copy link

We are using unity for DI in a large C# web application with lots of dependencies. Very rarely we see the Resolve process fail for one of our objects, only to immediately succeed on the next call with no changes in configuration or web call. The objects that fail seem random and the timing seems random. It fails with the error "Resolution failed with error: No public constructor is available for type", but the class does have a publicly accessible constructor. I am guessing this may be some sort of race condition in the unity startup code that may be causing this. Here is an example stack trace:

https://gist.github.com/rstallings/47917494c4af23af6f18412b5d3d084d

Is there any guidance you can provide on what may be happening here? Or ways to track this issue down/produce more useful information for you guys?

Any help is appreciated.

@ENikS
Copy link
Contributor

ENikS commented Oct 31, 2021

Unity development and support is on pause at the moment
unitycontainer/unity#368

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants