I am attempting to deploy a web application to IIS using a web application package. When I try to use the web deploy command line to run my application.deploy.cmd I get an error saying that my managed runtime version is version 2 and not version 4 as my application requires.
I understand that I must be using an application pool which is configured to use ASP.NET 4.0 and I have an application pool which is configured to use ASP.NET 4.0.
My question is how do I tell the Web Deploy Command Line tool which application pool to use when I run my application.deploy.cmd?