Note that there are some explanatory texts on larger screens.

plurals
  1. PODeploying .NET 4.5 web app with Web Deploy
    primarykey
    data
    text
    <p>I have a working ASP.NET MVC 3 application. The project is built with VS 2010 and targets .NET 4.0. Now I re-targeted it to .NET 4.5 and successfully recompiled. Trying to deploy it to our test server (Windows 2008 R2 SP1) now fails:</p> <blockquote> <p>Error Code: ERROR_APPPOOL_VERSION_MISMATCH More Information: The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v4.0'. This application requires 'v4.5'. Learn more at: <a href="http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_APPPOOL_VERSION_MISMATCH" rel="nofollow noreferrer">http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_APPPOOL_VERSION_MISMATCH</a>.</p> </blockquote> <p>The server has .NET 4.5 installed but there is no app pool 4.5 (because it's inplace upgrade and as I understand 4.0 pool should be fine). The client machine has VS 2012 and so Web Deploy 3 (was Web Deploy 2 previously). I also installed Web Deploy 3 to the server.</p> <p>Tried to re-register ASP.NET with <code>aspnet_regiis</code> - no luck.</p> <p>Why do I get the error and how can I fix it? This is so frustrating...</p> <p>p.s. Found <a href="https://stackoverflow.com/questions/11057814/deploying-a-net-4-5-website-to-an-iis-7-5-server">similar question</a> about RC but it does not help</p> <p><strong>Update:</strong></p> <p>Looks like <a href="https://stackoverflow.com/questions/7365006/how-to-web-deploy-a-web-application-targeting-entity-framework-4-2-june-2011-ctp">this is a bug</a> Microsoft hasn't fixed since CTP. <code>IgnoreDeployManagedRuntimeVersion</code> property did the trick. What a shame!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload