title: MVC 3 Razor - How to stop the view engine from searching the aspx and ascx pages?
body: <p>I had a small bug in a view and noticed that the view engine was searching not only for my razor views but for aspx/ascx pages. (My bug is fixed)</p>
  
  <p>Is there a way to tell it to only search the Razor view engine? </p>
  
  <p>Here is the error message that was displayed:</p>
  
  <pre><code>The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:
  ~/Areas/BO/Views/Organization/Index.aspx
  ~/Areas/BO/Views/Organization/Index.ascx
  ~/Areas/BO/Views/Shared/Index.aspx
  ~/Areas/BO/Views/Shared/Index.ascx
  ~/Views/Organization/Index.aspx
  ~/Views/Organization/Index.ascx
  ~/Views/Shared/Index.aspx
  ~/Views/Shared/Index.ascx
  ~/Areas/BO/Views/Organization/Index.cshtml
  ~/Areas/BO/Views/Organization/Index.vbhtml
  ~/Areas/BO/Views/Shared/Index.cshtml
  ~/Areas/BO/Views/Shared/Index.vbhtml
  ~/Views/Organization/Index.cshtml
  ~/Views/Organization/Index.vbhtml
  ~/Views/Shared/Index.cshtml
  ~/Views/Shared/Index.vbhtml
  </code></pre>