[Mono-aspnet-list] Pro ASP.NET MVC Framework Problems

Kevin Monceaux Kevin at RawFedDogs.net
Mon Apr 5 21:39:41 EDT 2010


On Mon, Apr 05, 2010 at 12:13:08PM -0500, Kevin Monceaux wrote:

> I've only tried the PageLinks HTML helper code under Linux/Mono.

I was working remotely via SSH earlier.  I'm home now and have tried the
code under Windows, non-Mono.  The code does work as written in the book
under Windows.  I think the code that's misbehaving is this route:

routes.MapRoute(
    null, // Don't bother giving this route entry a name
    "", // Matches the root URL, i.e. ~/
    new { controller = "Products", action = "List", page = 1 } // Defaults
);

Another example later in the book has a similar route:

routes.MapRoute(null,
    "", // Only matches the empty URL (i.e. ~/)
    new { controller = "Products", action = "List",
    category = (string)null, page = 1 }
);

>From the comments above it looks like the above routes are intented to match
only an empty URL, aka the root URL.  If I put such a route first in my
routing configuration under Mono it matches non-empty URLs.  Is this a bug
in Mono's routes implementation?  If not, what should one use to match an
empty, aka root, URL?



-- 

Kevin
http://www.RawFedDogs.net
http://www.WacoAgilityGroup.org
Bruceville, TX

What's the definition of a legacy system?  One that works! 
Si hoc legere scis nimium eruditionis habes.
Longum iter est per praecepta, breve et efficax per exempla!!!



More information about the Mono-aspnet-list mailing list