title: ASP MVC 4 - cannot find view
body: <p>Error:</p>
  
  <blockquote>
    <p>The view 'Index' or its master was not found or no view engine
    supports the searched locations. The following locations were
    searched: ~/Areas/AdminAssignment/Views/Calendar/Index.aspx
    ~/Areas/AdminAssignment/Views/Calendar/Index.ascx
    ~/Areas/AdminAssignment/Views/Shared/Index.aspx
    ~/Areas/AdminAssignment/Views/Shared/Index.ascx
    ~/Views/Calendar/Index.aspx ~/Views/Calendar/Index.ascx
    ~/Views/Shared/Index.aspx ~/Views/Shared/Index.ascx
    ~/Areas/AdminAssignment/Views/Calendar/Index.cshtml
    ~/Areas/AdminAssignment/Views/Calendar/Index.vbhtml
    ~/Areas/AdminAssignment/Views/Shared/Index.cshtml
    ~/Areas/AdminAssignment/Views/Shared/Index.vbhtml
    ~/Views/Calendar/Index.cshtml ~/Views/Calendar/Index.vbhtml
    ~/Views/Shared/Index.cshtml ~/Views/Shared/Index.vbhtml</p>
  </blockquote>
  
  <p>My folder structure is as follows: </p>
  
  <pre><code>MVCApp.WebUI
  - Areas
    -AdminAssignment
      -Controllers
      -Models
      -Views
        -Calendar
          -Index.cshtml
  </code></pre>
  
  <p>when i try to browse directly to Index.cshtml I receive a HTTP 404 error. I tried changing the build on the view to 'content' but that didn't do anything. Completely confused as to why it cannot find it considering '~/Areas/AdminAssignment/Views/Calendar/Index.cshtml' is the actual path of the file.</p>
  
  <p>Would appreciate if someone can point me in the right direction!</p>
  
  <p>Thanks!</p>