I want to deploy a ASP.NET 4.0 application using MSDeploy.
I created a simple ASP.NET application in Visual Studio 2010 Beta 2 and then created a package. After that, I’m going to IIS 7 console and try to import using my generated zip file. I received the following error message:
The package installation failed.
The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v4.0'. This application requires 'v2.0'.
Which is true since my Application Pool is configured for Fx 4.0. However, when I’m looking at the configuration of my web application, it is also configured to use Fx 4.0. I see that my deployment manifest has the following value:
<?xml version="1.0" encoding="utf-8"?>
<IisApp path="D:\...\Package\PackageTmp" managedRuntimeVersion="v2.0" />
But I can’t simply change this value. It is overwritten by the “create Package” process. How can we force managedRuntimeVersion to v4.0.