title: change from Webforms views to Razor views not working
body: <p>I updated my MVC Views from Webforms to Razor.</p>
  
  <p>What I did is that I rewrite manually all the code in Razor and excluded the aspx from the project. So far so good. </p>
  
  <p>Now something strange is happening when I run the web site. I still get the Webforms views even if I excluded them from the project and replaced them with Razor views.</p>
  
  <p>I did add this to my Web config file :</p>
  
  <pre><code> &lt;configSections&gt;
       &lt;sectionGroup name="system.web.webPages.razor"
   type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup,
   System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral,
   PublicKeyToken=31BF3856AD364E35"&gt;
         &lt;section name="host"
   type="System.Web.WebPages.Razor.Configuration.HostSection,
   System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral,
   PublicKeyToken=31BF3856AD364E35" requirePermission="false" /&gt;
         &lt;section name="pages"
   type="System.Web.WebPages.Razor.Configuration.RazorPagesSection,
   System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral,
  PublicKeyToken=31BF3856AD364E35" requirePermission="false" /&gt;
       &lt;/sectionGroup&gt;   &lt;/configSections&gt;
  
     &lt;system.web.webPages.razor&gt;
       &lt;host factoryType="System.Web.Mvc.MvcWebRazorHostFactory,
   System.Web.Mvc, Version=3.0.0.0, Culture=neutral,
   PublicKeyToken=31BF3856AD364E35" /&gt;
       &lt;pages pageBaseType="System.Web.Mvc.WebViewPage"&gt;
         &lt;namespaces&gt;
           &lt;add namespace="System.Web" /&gt;
           &lt;add namespace="System.Web.Mvc" /&gt;
           &lt;add namespace="System.Web.Mvc.Ajax" /&gt;
           &lt;add namespace="System.Web.Mvc.Html" /&gt;
           &lt;add namespace="System.Web.Routing" /&gt;
         &lt;/namespaces&gt;
       &lt;/pages&gt;   &lt;/system.web.webPages.razor&gt;
  </code></pre>
  
  <p>I added this block to my Web config from the views folder.
  I also added a _ViewStart.cshtml</p>