ksachdeva
03-22-2008, 01:20 AM
Hi,
I am trying to run the most simplest of MVC application (basically the one generated by template) and running in to 404 issues.
I even added .mvc extension in front of controller name as recommended [please see the snippet below]
[quote]
publicstaticvoidRegisterRoutes(RouteCollectionrout es)
{
//Note:ChangetheURLto'{controller}.mvc/{action}/{id}'toenable
//automaticsupportonIIS6andIIS7classicmode
routes.Add(newRoute('{controller}.mvc/{action}/{id}',newMvcRouteHandler())
{
Defaults=newRouteValueDictionary(new{action='Index ',id=''}),
});
routes.Add(newRoute('Default.aspx',newMvcRouteHand ler())
{
Defaults=newRouteValueDictionary(new{controller='H ome',action='Index',id=''}),
});
}
</CODE>
and it does not help either.
Please guide
Regards
Kapil
I am trying to run the most simplest of MVC application (basically the one generated by template) and running in to 404 issues.
I even added .mvc extension in front of controller name as recommended [please see the snippet below]
[quote]
publicstaticvoidRegisterRoutes(RouteCollectionrout es)
{
//Note:ChangetheURLto'{controller}.mvc/{action}/{id}'toenable
//automaticsupportonIIS6andIIS7classicmode
routes.Add(newRoute('{controller}.mvc/{action}/{id}',newMvcRouteHandler())
{
Defaults=newRouteValueDictionary(new{action='Index ',id=''}),
});
routes.Add(newRoute('Default.aspx',newMvcRouteHand ler())
{
Defaults=newRouteValueDictionary(new{controller='H ome',action='Index',id=''}),
});
}
</CODE>
and it does not help either.
Please guide
Regards
Kapil