Route pattern matches but getting 404

Topics: Core, Customizing Orchard
Aug 23, 2013 at 11:52 AM
Edited Aug 23, 2013 at 11:54 AM
Hi,
I have a set of questions each having several tags to it. Each tag is clickable and supposed to filter the questions based on it.

I have a Route for the tag:
new RouteDescriptor
                {
                    //Priority = -4,
                    Priority = -29,
                    Route = new Route(
                        "questions/tagged/{tag}",
                        new RouteValueDictionary { 
                            {"area","xxx.Intrust"},
                            {"controller","Question"},
                            {"action","DisplayByTag"},
                            {"tag", ""}
                        },
                        new RouteValueDictionary {
                            {"tag",@"\w*/*"}
                        },
                        new RouteValueDictionary{
                            {"area","xxx.Intrust"}
                        },
                        new MvcRouteHandler())
                },
A typical Tag url looks like this:
http://local.intrustknowsbusiness.com/lendinng/questions/tagged/minimum%20opening%20deposit

But I am always getting 404 error.

I debugged the code, but no Action method in the controller (typically I like to see "DisplayByTag" is being invoked) is called.

Can't find out where I am doing wrong!

Please help.

Subrata