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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:13:46+00:00 2026-05-16T22:13:46+00:00

I am in the early stages of developing an Azure web project which will

  • 0

I am in the early stages of developing an Azure web project which will likely take more than six months to complete. The views which make up the UI would benefit from clean syntax provided by the Razor view engine found in the MVC 3 preview 1.

The following exception is thrown whenever the site is run as an Azure web role:

InvalidOperationException: The view 'Index' or its master was not found.
The following locations were searched:  
  ~/Views/Content/Index.aspx  
  ~/Views/Content/Index.ascx  
  ~/Views/Shared/Index.aspx  
  ~/Views/Shared/Index.ascx  
  ~/Views/Content/Index.cshtml  
  ~/Views/Shared/Index.cshtml  

Notes:

  • The site runs as expected when started as a standalone instance (which seems to validate that the upgrade from MVC 2 to 3 worked correctly — see next two points)
  • The ‘~/Views/Content/Index.cshtml’ file exists as well as the ‘~/Views/Shared/_Layout.cshtml’ LayoutPage it references.
  • I followed the steps from the MVC 3 Preview 1 Release Notes (replaced reference to 2.0 version of System.Web.Mvc with 3.0, modified the ProjectTypeGuids in the csproj file, and updated bindingRedirect versions).
  • Searching Google resulted in one suggestion to set Copy Local to ‘True’ for the System.Web.Mvc.dll. It appears that the page was referencing an older version of MVC. Making that change didn’t help.

Edit:

  • I just got the idea to dig around the Azure directories a little more. It appears the build process that the Azure Cloud Service uses skips over .cshtml files. Manually copying the files to the Azure role directories causes the page to load as expected. If I can’t figure out what copies these files I will probably just create a post build script.
  • 1 1 Answer
  • 1 View
  • 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-16T22:13:46+00:00Added an answer on May 16, 2026 at 10:13 pm

    When right clicking in a ActionResult method and selecting ‘Add View’, the CSHTML view file is created in a view directory however the Build Action property of the file is set to ‘None’ rather than ‘Content’.

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

Sidebar

Related Questions

I am currently in the early stages of developing a couple web applications, I
I'm in the early stages of a web application that will contain a client
Currently in the early stages of developing a very large project using ASP.Net MVC.
I am in the early stages of building a series of classes which will
I'm in early (pre-coding) stages of developing a mobile web application using jQuery Mobile
We're in the early stages of designing a RESTful/resource-oriented web service API for a
I'm at the very early stages of a project requiring the broadcasting, using RTP,
In the early stages of a project when lots of files are being added
I am in the early stages of developing a database-driven system and the largest
I am in the early stages of developing a sports statistics website (ultimate frisbee)

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.