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

Give a better error message when UseMvc() isn't called #543

Closed
rynowak opened this issue May 19, 2014 · 5 comments
Closed

Give a better error message when UseMvc() isn't called #543

rynowak opened this issue May 19, 2014 · 5 comments

Comments

@rynowak
Copy link
Member

rynowak commented May 19, 2014

Currently this fails with a null-ref. If we're not going to auto-wire this up, we should make it easier to understand how to fix it. We can throw with a good message in MvcRouteHandler.

@davidfowl
Copy link
Member

Yes!

@borgdylan
Copy link

This is also needed for SignalR

@davidfowl
Copy link
Member

UseMvc or AddMvc?

@borgdylan
Copy link

I think he meant AddMvc. AddMvc adds Mvc services to IoC while UseMvc adds it to the request pipeline.

@danroth27 danroth27 modified the milestones: 1.0.0-alpha3, 6.0.0-alpha3 Jul 2, 2014
@dougbu
Copy link
Member

dougbu commented Jul 28, 2014

This and #347 are duplicates. Pick one and carry that forward. I vote for the one assigned to @sornaks 😸

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

7 participants