-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Throw a better exception when the user didn't add the MVC services #347
Comments
@dougbu - Here is the first replacement for enum support for this sprint |
@davidfowl Had an earlier suggestion to auto-fix this problem for the user rather than throwing here. #128 #Demoware |
We decided to throw and not autofix -----Original Message----- @davidfowl Had an earlier suggestion to auto-fix this problem for the user rather than throwing here. #128 #Demoware — |
Message already seems pretty good. Certainly not throwing an NRE now. Is this issue still relevant? FYI message from Autofac, when using .NET 4.5:
and from the default
|
@dougbu this still isn't good enough. It doesn't tell the user what to do to fix the problem.
|
My question was really about balancing that usability improvement (which seems slight) against breaking the preferred DI model and explicitly calling |
Same as #543 |
… services. Introducing MarkerService for identifying if MvcServices were added.
Checked in. 791518d |
Currently you get an ArgumentNullException when you use MVC, but didn't add the MVC services. We should throw a better exception.
The text was updated successfully, but these errors were encountered: