0

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.

1 Answer 1

0

You've tagged this with IIS5 yet IIS5 doesn't support your nice MVC URLs out of the box. You will need to use a wildcard extension or you will need to change your urls to contain an extension that you can map to ASP.NET. See

ASP.NET MVC and IIS 5

Deploy ASP.NET MVC on IIS 5.1 (Windows XP)

Sign up to request clarification or add additional context in comments.

1 Comment

He could also install IIS Express if all he needs is an IIS server to develop on. weblogs.asp.net/scottgu/archive/2010/06/28/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.