title: How to Web Deploy a web application targeting Entity Framework 4.2 June 2011 CTP
body: <p>I'm using  Entity Framework 4.2 June 2011 CTP in a small web application (ASP.NET MVC 3) because it supports enums.</p>
  
  <p>I tried to deploy it using web deploy and I get the following error : </p>
  
  <blockquote>
    <p>The application pool that you are trying to use has the
    'managedRuntimeVersion' property set to 'v4.0'. This application
    requires 'v4.2'.</p>
  </blockquote>
  
  <p>How to create an application pool running on .NET 4.2 ?</p>
  
  <p><strong>Edit:</strong> The web application does work with a 4.0 app pool so the real question is how to disable the app pool runtime version check when using Visual Studio Publish option ?</p>