title: The partial view '/Views/Shared/ ... was not found or no view engine supports the searched locations
body: <p>In an ASP.Net mvc cshtml page I have the following code that calls 4 partial views located in my folder:</p>
  
  <pre><code>&lt;div id="accordion"&gt;
       &lt;h3 style="padding-left: 50px"&gt;Instructions&lt;/h3&gt;
          &lt;div&gt;@Html.Partial("/Views/Shared/_instruct.cshtml", null)&lt;/div&gt;
  
      &lt;h3 style="padding-left: 50px"&gt;Projects by  @Html.DisplayFor(model =&gt; model.FirstName) @Html.DisplayFor(model =&gt; model.LastName)&lt;/h3&gt;
          &lt;div&gt;@Html.Partial("~/Views/Shared/_research.cshtml", Model.Proposalsvm)&lt;/div&gt;
     &lt;h3 style="padding-left: 50px"&gt;  Publications&lt;/h3&gt;
          &lt;div&gt;  @Html.Partial("~/Views/Shared/_publications.cshtml", Model.Pubs)&lt;/div&gt;
      &lt;h3 style="padding-left: 50px"&gt;  Patents&lt;/h3&gt;
          &lt;div&gt;   @Html.Partial("~/Views/Shared/_patents.cshtml", Model.Patents)&lt;/div&gt;
      &lt;h3 style="padding-left: 50px"&gt;Training&lt;/h3&gt;
          &lt;div&gt;@Html.Partial("~/Views/Shared/_Student.cshtml", Model.Students)&lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>All the views are located in my Shared folder and the spelling is correct.  When I run the code from my local machine all the partial views are rendered.  When I deploy the code to my production machine, the last three partial views are rendered if I comment out the first one. If I don't I get the following error:</p>
  
  <pre><code>The partial view '/Views/Shared/_instruct.cshtml' was not found or no view engine supports the searched locations. The following locations were searched:
  /Views/Shared/_instruct.cshtml 
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
  Exception Details: System.InvalidOperationException: The partial view '/Views/Shared/_instruct.cshtml' was not found or no view engine supports the searched locations. The following locations were searched:
  /Views/Shared/_instruct.cshtml
  
  Source Error: 
  line 19:        &lt;div id="accordion"&gt;
  Line 20:          &lt;h3 style="padding-left: 50px"&gt;Instructions&lt;/h3&gt;
  Line 21:             &lt;div&gt;@Html.Partial("/Views/Shared/_instruct.cshtml", null)&lt;/div&gt;
  Line 22:             
  Line 23:         &lt;h3 style="padding-left: 50px"&gt;Projects by  @Html.DisplayFor(model =&gt; model.FirstName) @Html.DisplayFor(model =&gt; model.LastName)&lt;/h3&gt;
  
  Source File: d:\WebSite\BUD\Views\PUBLICATIONS_forUD\BARDat40.cshtml    Line: 21 
  
  Stack Trace: 
  [InvalidOperationException: The partial view '/Views/Shared/_instruct.cshtml' was not found or no view engine supports the searched locations. The following locations were searched:
  /Views/Shared/_instruct.cshtml]
     System.Web.Mvc.HtmlHelper.FindPartialView(ViewContext viewContext, String partialViewName, ViewEngineCollection viewEngineCollection) +416
     System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +225
     System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +136
     ASP._Page_Views_PUBLICATIONS_forUD_BARDat40_cshtml.Execute() in d:\WebSite\BUD\Views\PUBLICATIONS_forUD\BARDat40.cshtml:21
  </code></pre>
  
  <p>The partial view causing the problems contains only divs and has no model.  I tried the solutions from previous answers and none have worked.  (The build for the view is Content, I have erased are recreated the partial view, renamed the partial view, removed the null from the @Html.Partial, removed the cshtml from the view -- none of which has worked.)</p>