I am a complete newbie,
I have the default to be HomeController->Index When I hit, http: / /localhost /SampleApplication
It goes to the index but I have another action "Process" in HomeController.If I hit http://localhost/SampleApplication/Home/Process returns resource not found.
I am unable to get this in Visual Studio execute/Dev environment or by deploying in IIS.
My Global.asax is,
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
}
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RegisterRoutes(RouteTable.Routes);
}
I could not get this going correctly in VS2010 itself.When I execute it launches a development server at port 1048.So I believe its more to do with my understanding or code in global.asax.