title: Problems returning PartialViews from controller
body: <p>I am using MVC 4 and I have some areas in my project and some Views and Partial Views within each area:</p>
  
  <pre><code>Areas
      AdminArea   =&gt; one area and so on
          Views
             Customer
                Customer.cshtml         =&gt; my View
                _CustomerDetails.cshtml =&gt; my partial View
  </code></pre>
  
  <p>In my controller, CustomerController I have the following code that fails:</p>
  
  <pre><code>return PartialView("_CustomerDetails", model) =&gt; fails to find my partial view.
  </code></pre>
  
  <p>However, if I call</p>
  
  <pre><code>return PartialView("~/Areas/AdminArea/Views/Customer/_CustomerDetails.cshtml", model) 
  </code></pre>
  
  <p>the code executes successfully.</p>
  
  <p>My Views (not partial views) all work ok. I even have some some partial views (also in the same area) that render ok without specifying the full path, but for some reason, for the most of them the above code fails in constructor saying that:</p>
  
  <pre><code>The partial view '_CustomerDetails' was not found or no view engine supports the searched locations. The following locations were searched:
  ~/Views/Customer/_CustomerDetails.cshtml a.s.o. ... =&gt; and is searching in global not in Admin area.
  </code></pre>
  
  <p>Is there any way to fix this problem without having to specify the full path to my PartialViews in code? (like passing area="Admin" like I do in the .cshtml file). 
  I am not using any custom ViewEngine and I have called AreaRegistration.RegisterAllAreas() in Global.asax.cs.</p>
  
  <p>Thanks,
  Tamash </p>