title: Can I precompile my ASP.NET MVC application?
body: <p>I tried to precompile my ASP.NET MVC application and deploy it to an IIS6 box (with wildcard mapping), however I am getting an error with rendering partial views (user controls).  Its working fine on my dev machine before precompiling.</p>
  
  <p>The error is:</p>
  
  <blockquote>
    <p>Server Error in '/' Application.<br />
    <br />
    The partial view 'ListGrid' could not<br />
    be found. The following locations were<br />
    searched:<br />
    ~/Views/Initiative/ListGrid.aspx<br />
    ~/Views/Initiative/ListGrid.ascx<br />
    ~/Views/Shared/ListGrid.aspx<br />
    ~/Views/Shared/ListGrid.ascx<br /></p>
  </blockquote>
  
  <p>I checked Views\Shared for the file and it was not there, which I thought was normal because its precompiled.  But just for giggles I put a blank file in that folder names ListGrid.ascx, but then I got this error:</p>
  
  <blockquote>
    <p>Server Error in '/' Application.<br />
    <br />
    The file '/Views/Shared/ListGrid.ascx'<br />
    has not been pre-compiled, and cannot<br />
    be requested.</p>
  </blockquote>
  
  <p>I googled and searched SO but could not find any similar problems, but had no luck.</p>