Skip to content

Intermittent Failure During Resolve Process #354

Open
@rstallings

Description

@rstallings

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions