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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:44:56+00:00 2026-05-20T07:44:56+00:00

I have searched on Google (may be with wrong keyword) and visited the tutorials

  • 0

I have searched on Google (may be with wrong keyword) and visited the tutorials of ASP.NET/MVC website. But didn’t understand the routing of MVC properly.
I have a scenario of the following figure. I want to display the Index.cshtml when the website lunched.

enter image description here

I have changed the RegisterRoutes method of Global.asax.cs file in various ways. The latest code (not working) is below

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

I will be very happy if someone explains the MapRoute method with different example along with answering my problem.

  • 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-20T07:44:57+00:00Added an answer on May 20, 2026 at 7:44 am

    ASP.NET MVC 3 has a built in feature for sub folders. That is called Areas (thanks @Morten for let me know the word).
    But after finishing the MSDN Walkthrough for Areas, I was still unable to run the web application. The error was showing Configuration errors. @Danny also noticed that.
    Then I searched and found that, the Web.config files in the sub folders shouldn’t contain application specific properties.
    So, I removed those properties from the Web.config files. Then I was able to run. But there were some runtime errors when I wanted to navigate to my sub folder/area views. The error was “Could not load type ‘System.Web.Mvc.ViewPage<..<>’” when I click on the links for the views of the Areas folder.

    Then I again searched and found helpful this post. And then my application successfully run and I can navigate all of the pages.

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

Sidebar

Related Questions

I have searched Google and JetBrains website, but I cannot find docs for the
I have searched Google and Stackoverflow for this question, but I still don't understand
I have searched but apparently my google foo is weak. What I need is
I have searched google but it seems no one has come across this issue.
i have been trying to learn PHP Repeat Region... i have searched google but
I've searched for this a little but I have not gotten a particularly straight
I have seen some similar questions on stackoverflow and on searched on google too
i have searched google, tried to read adhearsion docs and make sense of the
I have another problem regarding Git. This time I thoroughly searched Google and Stack
Ok, I know similar questions have been asked, but my groveling through Google searches

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.