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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:22:11+00:00 2026-05-23T08:22:11+00:00

I have this ASP.NET MVC 3 application that works fine when developing locally using

  • 0

I have this ASP.NET MVC 3 application that works fine when developing locally using IIs Express 7.5 or Cassini.
But when i deploy the app to a real web site on IIs 7.5 (even on my local dev box) I get the dreaded

The view ‘Index’ or its master was not found or no view engine supports
the searched locations.
The following
locations were searched:
~/Views/Home/Index.cshtml
~/Views/Home/Index.vbhtml
~/Views/Shared/Index.cshtml
~/Views/Shared/Index.vbhtml

I have tried the following:
In global.asax.cs, added these lines in the Application_Start() method to force it to use the Razor view engine only:

ViewEngines.Engines.Clear();
ViewEngines.Engines.Add(new RazorViewEngine());

But to no avail.
I find this error message somewhat difficult to troubleshoot. Can someone give me some pointers on what to look for?

  • 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-23T08:22:11+00:00Added an answer on May 23, 2026 at 8:22 am

    Ok, my bad.

    A classic example of shooting first then ask. (Or the other way around…)

    The Home/Index.cshtml file had its Build Actions set to None for some reason. Setting it to Content solved the problem.

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

Sidebar

Related Questions

We have a file upload in our ASP.NET MVC application that works fine. It
I have an ASP.NET MVC (using the release candidate) application that works with a
I have an ASP.NET MVC application using Authorization Attributes on Controllers and Actions. This
I wrote an application using ASP.NET MVC, in this application I have an Index
I'm developing an application using asp.net mvc, NHibernate and DDD. I have a service
I have an ASP.NET MVC 3 (using Entity Framework 4.2) application that uses transactions
I have an ASP.NET MVC application that I'm working on. I've been developing it
I have an ASP.net MVC 2 application that runs well locally. However when I
I have an asp.net mvc 2 application which works fine when run from visual
I have an ASP.NET MVC application that I wrote using LINQ to communicate with

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.