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 6023299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:59:03+00:00 2026-05-23T03:59:03+00:00

I have working application in asp.net MVC3. Today when I was working on it

  • 0

I have working application in asp.net MVC3. Today when I was working on it in VS2010 I found that none of the action from particular controller are firing. On browsing controller/action I get page not found message. I checked all pages are present (controller, view). Even if I add new action to this controller it is not being called at all. At the same time actions from other controllers are working fine. I can access pages. It’s quite weird and I’m not able to figure out it.
Any help?

Edit:

Controller-action which is not working is http://localhost:7400/Registration/MedicalHistory/0

Code from global.asax

 public static void RegisterRoutes(RouteCollection routes)
    {
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

        // Home and error page
        routes.MapRoute("error", "error", new { controller = "Home", action = "Error" });

        //Default routing
        routes.MapRoute(
            "Default",                                              // Route name
            "{controller}/{action}/{id}",                           // URL with parameters
            new { controller = "Program", action = "Index", id = UrlParameter.Optional },  // Parameter defaults
            new string[] { "ASPNETMVCApplication.Controllers" }
        );

        //Admin routing
        routes.MapRoute(
             "Admin", // Route name
             "{controller}/{action}/{id}", // URL with parameters
             new { controller = "Program", action = "Index", id = UrlParameter.Optional }, // Parameter defaults
             new string[] { "ASPNETMVCApplication.Areas.Admin.Controllers" }
        );            
    }

MedicalHistory action:

   [HttpGet]
    public ActionResult MedicalHistory(int id = 0)
    {
      //some code
      return View()
    }
  • 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-23T03:59:04+00:00Added an answer on May 23, 2026 at 3:59 am

    Well first things first you seem to have set up your admin area incorrectly.
    To add an area you should have in the root of your MVC project a folder structure Areas/{the name of your area}, e.g. Areas/Admin which contains all the usual Controllers, Views folders.

    Inside there you should create a class that inherits AreaRegistration and implements at least the AreaName property and RegisterArea() method.

    In Global.asax.cs in your Application_Start() handler the first line should be AreaRegistration.RegisterAllAreas();.

    Also it is well worth adding RouteDebug to your app and adding a web.config switch you use in you Application_Start() to either turn route debugging on or off. This is absolutely invaluable when your routes are misbehaving or not getting the action parameters you expect.

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

Sidebar

Related Questions

I have Ninject working nicely in an ASP.NET MVC3 web application. I'd like to
I am working on asp.net MVC3 application and I have created a layout.cshtml which
I have created a Web Application in asp.net 2.0. which is working fine on
I have a working login form in an asp.net application. Standard stuff with a
I am working on a web application (ASP.NET) game that would consist of a
We have a ASP.Net web application running in Visual Studio 2010 that is targeting
I am working on an ASP.net Forms Application that keeps track of information about
I have uploaded the document from my asp.net mvc 2 application to application domain.
I have an ASP.NET WebForms application that I'm adding some ASP.NET MVC to. I
I have an asp.net application that uses the file (something like hand-made DB). It

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.