Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 625867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:21:25+00:00 2026-05-13T19:21:25+00:00

I published my VS2008 ASP.NET MVC 1.0 project to a local folder, then FTPed

  • 0

I published my VS2008 ASP.NET MVC 1.0 project to a local folder, then FTPed it to a virtual directory on my host. I attempted to run and it complained that System.Web.Mvc.dll is missing, so I copied that.

After that I get a 404. Now I know that it gets to my HomeController.Index method, because it does a RedirectToAction. That next action (which is in the same controller) is what causes the problem.

I have a feeling that the routing is not working correctly.

I watched the app with Fiddler:

  1. I goto http://www.example.com/myApp
  2. Results in a 301 (permanent redirect) to http://www.example.com/myApp
  3. Then I get a 302 (redirect to /myApp/Home/Details/2). This is correct because my Index method on the HomeController does a RedirectAction to the Details method with a parameter of 2.
  4. Then the browser hits http://www.example.com/myApp/Home/Details/2. At this point I get a 404 Not found.

So it seems like /Home/Details/2 does not map onto my controller despite the following code being global.asax:

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 = "" }  // Parameter defaults
    );

}

protected void Application_Start()
{
    RegisterRoutes(RouteTable.Routes);
}

So what am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:21:25+00:00Added an answer on May 13, 2026 at 7:21 pm

    Well, the answer was staring me in the face the whole time:

    alt text

    The link explains what to do if your host is either IIS6 (which goDaddy is) or IIS7 classic mode.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on a project that consists of an ASP.NET MVC 2.0
When I publish my Asp.Net MVC website to the production server (via VS2008), the
I have created an outlook 2007 add-in project in vs2008, targeting .net 3.5, then
I have published my web project to local iis but framework can't find the
I have a small asp.net mvc app running on WIN2k3 and IIS6. I'm using
I published a simple ASP.net website referring to this link : http://msdn.microsoft.com/en-us/library/1y1404zt%28v=vs.80%29.aspx I managed
I published my asp.net app using the basic capability (publish to disk). Now I
I have an ASP.NET application in VS2008 that is growing larger and am developing
Not using Cassini, but IIS7 to run an ASP.NET app. The debug behavior is
I have an ASP.NET project. Currently, it starts on the Default.aspx page. However, I’d

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.