title: iframe parser error (HtmlIframe/HtmlGenericControl) but still using .NET 4.0 (not .NET 4.5)
body: <p>Here's my error message</p>
  
  <blockquote>
    <p><strong>Parser Error Message</strong>: The base class includes the field 'iframeShim',
    but its type (System.Web.UI.HtmlControls.HtmlGenericControl) is not
    compatible with the type of control
    (System.Web.UI.HtmlControls.HtmlIframe).</p>
  </blockquote>
  
  <p><strong>Source Error</strong>:</p>
  
  <pre><code>Line 180:    &lt;iframe runat="server" id="iframeShim" frameborder="0" scrolling="no" style="position: absolute;
  Line 181:        display: block; z-index: 990; z-index: 990" src="~/blank.html"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>and I'm using .NET 4.0</p>
  
  <blockquote>
    <p><strong>Version Information</strong>: Microsoft .NET Framework Version:4.0.30319;
    ASP.NET Version:4.0.30319.34249</p>
  </blockquote>
  
  <p>and the designer code is:</p>
  
  <pre><code>protected global::System.Web.UI.HtmlControls.HtmlGenericControl iframeShim;
  </code></pre>
  
  <p>The searches I've done show that this is typically an error when you upgrade to .NET 4.5 and the type of the server side variable hasn't been updated properly (needs to be <code>HtmlIframe</code>, not <code>HtmlGenericControl</code>). Also, those searches have the Parser Error Message slightly different (which makes sense when running in 4.5) - their message is: </p>
  
  <blockquote>
    <p>... but its type (System.Web.UI.HtmlControls.HtmlIframe) is not compatible
    with the type of control
    (System.Web.UI.HtmlControls.HtmlGenericControl).</p>
  </blockquote>
  
  <p>My targetFramework in web.config is:</p>
  
  <pre><code>&lt;compilation targetFramework="4.0"&gt;
  </code></pre>
  
  <p>So, I'm not exactly sure what is going on here. Any ideas? Note, I've installed VS2012 and just recently had to go back to the VS2010 project and do some work in it and this started to happen. I immediately thought it was a .NET versioning issue, but everything still shows I'm using .NET 4.0 in this VS2010 project.</p>