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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:35:48+00:00 2026-05-26T05:35:48+00:00

I recently made some changes to my MVC 3 project. When I run it,

  • 0

I recently made some changes to my MVC 3 project.

When I run it, the Views dont include any files like Site.css.
When I debug my Index() ActionController, it jumps directly to the View, withouting including files like _Layout.cshtml. So i just get a View with a white background, no menus etc.

The Global.asax.cs file contains following code:

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

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

    routes.MapRoute(
        "Default2", // Route name
        "{controller}/{action}/{id}/{page}", // URL with parameters
        new { controller = "Survey", action = "DisplayQuestions", id = "", page = "" }
    );
}
  • 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-26T05:35:49+00:00Added an answer on May 26, 2026 at 5:35 am

    If the breakpoint in your controller action is being hit the routes may be wrong but that’s not a reason for _Layout.cshtml to not load.

    A few things to check:

    • Is your view using View() and not PartialView() (the latter ignores ViewStart.cshtml and so the _Layout.cshtml).
    • Did you move your _Layout.cshtml recently / Have you renamed Shared (or created a SharedController by accident)?
    • Does your view include something like this at the top which would deactivate the _Layout.cshtml?

      @{
          Layout = "";
      }
      
    • Does your _ViewStart.cshtml still exist with the following code which activates the _Layout.cshtml?

      @{
          Layout = "~/Views/Shared/_Layout.cshtml";
      }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a site that is using Facebook Connect and recently made some
I recently made some changes to my development environment and came across a problem.
I have recently made some changes to my hosting account and a script I
So I recently made some changes to one of my tableviews and I noticed
I recently started tracking changes for my project with Mercurial. I made several revisions
In a game that I mod for they recently made some changes which broke
I have recently reinstalled MacOSX, and at some point (without realizing it) I made
Recently I made a bunch of changes to my local svn config file. Mainly
I released an update to one of my apps recently. This update made some
I am using the following plugin http://imageflow.finnrudolph.de/ and made some custom changes It is

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.