Problem with Routing in Trunk

Coordinator
Feb 14, 2010 at 5:21 AM

I'm playing with the Trunk, and tried running it in IIS7 (rather than the VS webserver), and the homepage throws a 404 error because of the updated code in RegisterRoutes.  The last route causes this 404 because it picks up "/" as one of its valid matches.  This is the line that causes a problem:

 

routes.Add("CategoryAndPost", new Route("{*path}", new CategoryAndPostHandler()));

routes.Add("CategoryAndPost", new Route("{*path}", new CategoryAndPostHandler()));

It works fine in the VS webserver, but IIS7 (at least with the default settings) it causes the error.

 

Feb 14, 2010 at 8:20 AM

Had the same problem, solved it in patch 39546