I have an ASP.NET MVC 3 application. The project is built using VS 2010 and is designed for .NET 4.0. Now I redirected it to .NET 4.5 and successfully recompiled. Attempting to deploy it to our test server (Windows 2008 R2 SP1) now fails:
Error code: ERROR_APPPOOL_VERSION_MISMATCH Additional information: the application pool that you are trying to use has the property "managedRuntimeVersion" set to "v4.0". This application requires "v4.5". More details: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_APPPOOL_VERSION_MISMATCH .
.NET 4.5 is installed on the server, but there is no 4.5 application pool (because it is updated on the spot and, as I understand it, the 4.0 pool should be fine). The client machine has VS 2012, and therefore Web Deploy 3 (formerly Web Deploy 2). I also installed Web Deploy 3 on the server.
I tried re-registering ASP.NET with aspnet_regiis - no luck.
Why can I get an error and how to fix it? This is so frustrating ...
ps Found a similar question about RC, but it doesn't help
Update:
This seems like a mistake. Microsoft did not fix with CTP. IgnoreDeployManagedRuntimeVersion property did the trick. What a disgrace!
Usercontrol
source share