title: MVC Page not showing up, 404 not found
body: <p>I have a very simple MVC site that is returning a 404 not found error when trying to load a page at the very beginning.  I'm looking for some direction to troubleshoot this problem since there is really nothing to go on from the error message.</p>
  
  <p><strong>UPDATE: The problem appears to have been cause by me setting the start page by right-clicking on the file and saying set as start page.  This caused Visual Studio to try to load that page directly.  When modifying the url to access the page using the routing rules the page will load correctly as suggested by Keltex below.</strong>  </p>
  
  <p>The error I'm getting is:</p>
  
  <blockquote>
    <p>Description: HTTP 404. The resource you are looking for (or one of its 
    dependencies) could have been removed, had its name changed, or is temporarily 
    unavailable.  Please review the following URL and make sure that it is spelled 
    correctly. </p>
    
    <p>Requested URL: /Views/Other/Index.aspx</p>
  </blockquote>
  
  <p>Below I have included the code for the various pieces, routing rules are default:</p>
  
  <pre><code>routes.MapRoute(
      "Default", // Route name
      "{controller}/{action}/{id}", // URL with parameters
      new { controller = "Home", action = "Index", id = UrlParameter.Optional}  // Parameter defaults
  );
  </code></pre>
  
  <p>The site is using nested MasterPages, not sure if this is involved with the problem but trying to include as much detail as possible.</p>
  
  <p>I have:</p>
  
  <p>Controllers</p>
  
  <ul>
  <li>OtherController</li>
  </ul>
  
  <p>Views:</p>
  
  <ul>
  <li>Shared Folder:
  
  <ul>
  <li>Site.Master</li>
  </ul></li>
  <li>Other Folder:
  
  <ul>
  <li>Other.Master</li>
  <li>Index.aspx</li>
  </ul></li>
  </ul>
  
  <p><strong>Site.Master Code:</strong></p>
  
  <pre><code>&lt;%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
      &lt;head runat="server"&gt;
          &lt;title&gt;
              &lt;asp:ContentPlaceHolder ID="TitleContent" runat="server" /&gt;
          &lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div&gt;
              &lt;asp:ContentPlaceHolder ID="MainContent" runat="server"&gt;
              &lt;/asp:ContentPlaceHolder&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Other.Master Code:</strong></p>
  
  <pre><code>&lt;%@ Master Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewMasterPage" %&gt;
  
  &lt;asp:Content ID="OtherTitle" ContentPlaceHolderID="TitleContent" runat="server"&gt;
      OTHER PAGE - MASTER TITLE
      &lt;asp:ContentPlaceHolder ID="OtherPageTitle" runat="server"&gt;
      &lt;/asp:ContentPlaceHolder&gt;
  &lt;/asp:Content&gt;
  
  &lt;asp:Content ID="OtherContent" ContentPlaceHolderID="MainContent" runat="server"&gt;       
      Some other content.
      &lt;asp:ContentPlaceHolder ID="PageContent" runat="server"&gt;    
      &lt;/asp:ContentPlaceHolder&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p><strong>Index.aspx Code:</strong></p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Views/Other/Other.Master" Inherits="System.Web.Mvc.ViewPage" %&gt;
  
  &lt;asp:Content ID="IndexTitle" ContentPlaceHolderID="OtherTitle" runat="server"&gt;
      Home
  &lt;/asp:Content&gt;
  
  &lt;asp:Content ID="IndexContent" ContentPlaceHolderID="OtherContent" runat="server"&gt;
      Index content
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p><strong>OtherController Code</strong></p>
  
  <pre><code>namespace MVCProject.Controllers
  {
      public class OtherController : Controller
      {
          //
          // GET: /Member/
  
          public ActionResult Index()
          {
              // Have also tried:
              // return View("Index", "Other.Master");
  
              return View();
          }
      }
  }
  </code></pre>