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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:06:23+00:00 2026-05-12T21:06:23+00:00

My folder look like this: (root)/Areas/Admin/Views/.. (root)/Areas/Admin/Controllers/… (root)/Areas/Admin/Routes.cs (root)/Areas/Forum/Views/.. (root)/Areas/Forum/Controllers/… (root)/Areas/Forum/Routes.cs public class Routes

  • 0

My folder look like this:

  • (root)/Areas/Admin/Views/..
  • (root)/Areas/Admin/Controllers/…
  • (root)/Areas/Admin/Routes.cs

  • (root)/Areas/Forum/Views/..

  • (root)/Areas/Forum/Controllers/…
  • (root)/Areas/Forum/Routes.cs

    public class Routes : AreaRegistration
    

    {
    public override string AreaName
    {
    get { return “Admin”; }
    }

    public override void RegisterArea(AreaRegistrationContext context)
    {
        context.MapRoute(
            "Admin_Default",
            "{controller}/{action}/{Id}",
            new { controller = "Admin", action = "Index", Id = (string)null }
        );
    }
    

    }

    public class Routes : AreaRegistration
    {
    public override string AreaName
    {
    get { return “Forum”; }
    }

    public override void RegisterArea(AreaRegistrationContext routes)
    {
        routes.MapRoute(
            "Forum_Default",
            "{controller}/{action}",
            new { controller = "Forum", action = "Index"}
        );
    }
    

    }

Global.asax

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

        AreaRegistration.RegisterAllAreas();

        routes.MapRoute(
            "Default",                                              // Route name
            "{controller}/{action}/{id}",                           // URL with parameters
            new { controller = "Home", action = "Index", id = "" }  // Parameter defaults
        );

The startpage should be Home/Index but it start with Admin/Index, why?

Only site.com/Admin works not site.com/Forum

How should i get Admin and Forum Areas to work right? Why is only Admin working and not Forum?

When i delete Admin/Routes.cs file Forum start to work…

EDIT:

Home in ~/Views/ don’t show as startpage even if i have

    routes.MapRoute(
        "Default",                                              // Route name
        "{controller}/{action}/{id}",                           // URL with parameters
        new { controller = "Home", action = "Index", id = "" }  // Parameter defaults

in my Global.asax after AreaRegistration.RegisterAllAreas();

  • 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-12T21:06:24+00:00Added an answer on May 12, 2026 at 9:06 pm

    I believe your area mappings should be structured like so.

    public override void RegisterArea(AreaRegistrationContext context)
    {
        context.MapRoute(
            "Admin_Default",
            "Admin/{controller}/{action}/{Id}",
            new { controller = "Admin", action = "Index", Id = (string)null }
        );
    }
    

    and

    public override void RegisterArea(AreaRegistrationContext context)
    {
        context.MapRoute(
            "Forum_Default",
            "Forum/{controller}/{action}/{Id}",
             new { controller = "Forum", action = "Index"}
        );
    }
    

    Keeps your routes from conflicting, which is what i think is happening in your case. As your default route matches your admin route.

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

Sidebar

Related Questions

My folder structure is like - root admin create_page.php pages my_page1.php my_page2.php I have
I have an array of folders/files that looks like this: Array ( [Root Folder
Basically the question is how to make this url http://domain.com/folder/cache.php?a=3a1c2aa4d440d3d8ce4207b07488ae4d?g=67h to look like this
the folder structure is like this: plugin->upload->php->files list-> 'script_url' => $this->getFullUrl().'/'.basename(__FILE__), //'upload_dir' => dirname(__FILE__).'/files/',
I have multiple folders that look like folder.0 and folder.1 . Inside each folder
I realize this question (or questions that look like this) have been asked over
I have had a look at this page HTML - pick images of Root
So far I know that FileSystemWatcher can look into a folder and if any
I have a folder named img and i want to use js to look
Take a look at the example code... NodeList folderNodes = document.getElementsByTagName(Folder); DocumentFragment node =

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.