title: Problems with default Razor View when deploying to "real" IIs Web Site
body: <p>I have this ASP.NET MVC 3 application that works fine when developing locally using IIs Express 7.5 or Cassini.<br>
  But when i deploy the app to a real web site on IIs 7.5 (even on my local dev box) I get the dreaded</p>
  
  <blockquote>
    <p>The view 'Index' or its master was not found or no view engine supports
    the searched locations.<br>
    The following
    locations were searched:<br>
    ~/Views/Home/Index.cshtml<br>
    ~/Views/Home/Index.vbhtml<br>
    ~/Views/Shared/Index.cshtml<br>
    ~/Views/Shared/Index.vbhtml</p>
  </blockquote>
  
  <p>I have tried the following: 
  In <code>global.asax.cs</code>, added these lines in the <code>Application_Start()</code> method to force it to use the Razor view engine only:</p>
  
  <pre><code>ViewEngines.Engines.Clear();
  ViewEngines.Engines.Add(new RazorViewEngine());
  </code></pre>
  
  <p>But to no avail.<br>
  I find this error message somewhat difficult to troubleshoot. Can someone give me some pointers on what to look for?</p>