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

Improve error message for "No parameterless constructor defined for this object" #310

Closed
@toddlucas

Description

@toddlucas

This error message will manifest if a constructor is private, but is a dependency of another class. The following exception is thrown in beta7:

System.MissingMethodException: No parameterless constructor defined for this object.

It would be great if the message would identify the type with the missing constructor. Otherwise, one must resort to binary search debugging (commenting out various DI inputs) or similar efforts.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions