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

  • Home
  • SEARCH
  • 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 4625236
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:14:36+00:00 2026-05-22T03:14:36+00:00

So, all of the sudden when I try to access a newly created controller

  • 0

So, all of the sudden when I try to access a newly created controller in my ASP.NET MVC 3 app, it returns a 404 error. I’ve made sure that the controller is named properly, the route match according to the RouteDebugger, and I’ve confirmed that a folder for the controller exists in the Views folder and that the properly named View for the action also exists. All of this is in an Area. Oh, and I’m running this on the Visual Studio dev server, not on IIS.

So, I’ve been at it for about 2 hours and am not getting anywhere, so I’m hoping someone here can point me in the right direction. Here’s the source for the controller and routes:

//  AdministrationAreaRegistration.cs
public override void RegisterArea(
    AreaRegistrationContext AreaRegistrationContext) {
    AreaRegistrationContext.MapRoute("8UVhDc", "Administration/{controller}/{DocumentTypeId}", new {
        action = "List"
    }, new {
        controller = @"Documents",
        DocumentTypeId = @"\d+"
    });
}

//  DocumentsController.cs
public sealed class DocumentsController : AdminController {
    [Inject]
    public DocumentsController(
        CookieManager CookieManager,
        DocumentTypeManager DocumentTypeManager)
        : base(CookieManager: CookieManager, DocumentTypeManager: DocumentTypeManager) {
    }

    [HttpGet]
    public ActionResult List(
        short DocumentTypeId) {
        return this.View(new AdministrationView {
            Cookie = base.Cookie,
            DocumentTypes = base.DocumentTypes
        });
    }
}

And ofcourse, there’s a folder named “Documents” in the “Views” folder, and in the “Documents” folder there is a view named “List”. As far as I can tell, I shouldn’t be getting this error (that probably is something a programmer shouldn’t say?)…

Anyway, it would be super-duper awesome if someone points out what I’m obviously screwing up. Thanks in advance!

  • 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-22T03:14:36+00:00Added an answer on May 22, 2026 at 3:14 am

    Make sure that the DocumentsController is defined in the XXX.Areas.Administration.Controllers namespace where XXX is the name of your application. Also make sure that the url you are requesting matches the route constraints:

    http://localhost:35076/Administration/Documents/123
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All of a sudden I am getting the following error when I try to
I am an ASP.NET MVC newbie. I am getting a very strange error when
All of a sudden I start getting this error while trying to open 2
All of a sudden in this MVC site I have no views that can
All of the sudden I'm getting the following error on my local web server
I am extremely confused why I am getting this strange error all the sudden:
I am using TortoiseSVN and all of the sudden I get this error when
Im not sure why, but my app all of a sudden keeps force closing
Why does SQL 2008 all of a sudden want to drop my tables when
My web service (wcf) stopped working all of a sudden. I compared my web.config

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.