title: Targetframework error when deploying MVC 4.5.1 on my server that has 4.0.3 installed
body: <p>My windows server 2008 R2 has .NET framework v4.0.3x installed currently.</p>
  
  <p>I have a ASP.NET MVC 4.5.1 application that when I deploy I get the following error:</p>
  
  <pre><code>The 'targetFramework' attribute in the &lt;compilation&gt; element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '&lt;compilation targetFramework="4.0"&gt;'). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.
  
  Source Error: 
  
  
  Line 37:   &lt;/appSettings&gt;
  Line 38:   &lt;system.web&gt;
  Line 39:     &lt;compilation debug="true" targetFramework="4.5.1" /&gt;
  Line 40:     &lt;httpRuntime targetFramework="4.5.1" /&gt;
  Line 41:     &lt;pages&gt; 
  </code></pre>
  
  <p>Do I need to install something on the server or is it an issue of my not deploying the correct dll's in my /bin folder?</p>
  
  <p>I have IIS 7.5.7x installed.</p>