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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:27:31+00:00 2026-05-26T09:27:31+00:00

I seem to be having an issue with either namespacing or Registration. At this

  • 0

I seem to be having an issue with either namespacing or Registration. At this point, I am leaning more towards area and registration issues with MVC 3.0, but I am open to any ideas here.

My CAPAreaRegistration.cs file looks ike this:

  namespace CISE.CINet.UserInterface.Areas.CAP
{
    public class CAPAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "CAP";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "CAP_default",
                "CAP/{controller}/{action}/{id}",
                new { action = "NewNomination", id = UrlParameter.Optional }
            );
        }
    }
}

I have also tried adding the namespace i changed everything to:

  public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "CAP_default",
                "CAP/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }, new string[] { "CISE.CINet.UserInterface.Areas.CAP.Controllers" }  // specify the new namespace 
            );
        }

The Global.asax looks like this:

    namespace CISE.CINet.UserInterface
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
    // visit http://go.microsoft.com/?LinkId=9394801

    public class MvcApplication : System.Web.HttpApplication
    {
        #region PUBLIC FIELDS TO ALL APPLICATIONS

        //public static string SERVER_NAME = "ri-cinet-prd";
        public static string SERVER_NAME = "se-cinet-dev";
        public static string SHAREPOINT_PATH = "http://se-spoint-dev/";

        #endregion

        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new HandleErrorAttribute());
        }

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


            routes.MapRoute(
                "CAPLogin",
                "CAP/WelcomePartial",
                new { controller = "Home", action = "WelcomePartial", id = UrlParameter.Optional }
            );

            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();

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);
        }
    }

The Home Controller works, but trying to go to CAP/NewNomination or CAP/Index does not work? I am getting a 404 error:

It directs to NewNomination, but i try index as well to no avail

Any ideas? Is my URL path incorrect?

  • 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-26T09:27:31+00:00Added an answer on May 26, 2026 at 9:27 am

    Try change the namespace for your area registration class to be the same as in your Global.asax.cs file.

    I had the same problem, and this fixed it for me at least.

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

Sidebar

Related Questions

This may be something common and trivial, but I seem to be having trouble
Seem to be having an issue with std::auto_ptr and assignment, such that the object
Hi I seem to be having an issue trying to align an H1 tag
I am having an issue that I can't seem to figure out. Hopefully somebody
i'm having an issue with creating a query in oracle which doesnt seem to
I am having a strange issue that I can't seem to resolve. Here is
I seem to be having an issue with PHP rounding (sort of) numbers by
I seem to be having an issue with Jax-WS and Jax-b playing nicely together.
I seem to be having some issues while attempting to implement logging into my
I seem to be having an issue delegating a custom event to a set

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.