Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
1 Points
3 Posts
Apr 03, 2008 12:22 PM|LINK
Here's the thing, my routes don't specify a controller.
Here a few of my routes
routes.Add(new Route("flight/{flightNumber}", new MvcRouteHandler()) { Defaults = new RouteValueDictionary(new { controller = "Flights", action = "GetFlightForToday", flightNumber = "" }), }); routes.Add(new Route("flight/{date}/{flightNumber}", new MvcRouteHandler()) { Defaults = new RouteValueDictionary(new { controller = "Flights", action = "GetFlight", date = DateTime.Today.ToString("MM/dd/yyyy"), flightNumber = "" }), }); routes.Add(new Route("flights", new MvcRouteHandler()) { Defaults = new RouteValueDictionary(new { controller = "Flights", action = "GetAllFlights"}), }); routes.Add(new Route("flights/active", new MvcRouteHandler()) { Defaults = new RouteValueDictionary(new { controller = "Flights", action = "GetActiveFlights" }), });
rjcox What are your routes? (Do they contain an .mvc extension? See the comment in the default global.asax.cs from the project template.)
What are your routes? (Do they contain an .mvc extension? See the comment in the default global.asax.cs from the project template.)
tobinibot
Member
1 Points
3 Posts
Re: Deploying on IIS 6
Apr 03, 2008 12:22 PM|LINK
Here's the thing, my routes don't specify a controller.
Here a few of my routes
routes.Add(new Route("flight/{flightNumber}", new MvcRouteHandler()) { Defaults = new RouteValueDictionary(new { controller = "Flights", action = "GetFlightForToday", flightNumber = "" }), }); routes.Add(new Route("flight/{date}/{flightNumber}", new MvcRouteHandler()) { Defaults = new RouteValueDictionary(new { controller = "Flights", action = "GetFlight", date = DateTime.Today.ToString("MM/dd/yyyy"), flightNumber = "" }), }); routes.Add(new Route("flights", new MvcRouteHandler()) { Defaults = new RouteValueDictionary(new { controller = "Flights", action = "GetAllFlights"}), }); routes.Add(new Route("flights/active", new MvcRouteHandler()) { Defaults = new RouteValueDictionary(new { controller = "Flights", action = "GetActiveFlights" }), });