Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

NullRef in ctor invocation #210

Closed
HaoK opened this issue Mar 27, 2015 · 0 comments
Closed

NullRef in ctor invocation #210

HaoK opened this issue Mar 27, 2015 · 0 comments
Assignees
Milestone

Comments

@HaoK
Copy link
Member

HaoK commented Mar 27, 2015

Ran into this when I accidentally did services.AddTransient<IFoo, IFoo>() and then had another class ctor public Ctor(IFoo foo). DI throws a Null ref deep inside of trying to invoke the ctor instead of a useful error message that was swallowed (cannot create an instance of an interface)

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

No branches or pull requests

3 participants