I am trying to deploy my web service in IIS.
However, VS 2012 gives me an error, because the website uses the application pool by default, which uses the .NET Framework 2.0. However, I need the .NET Framework 4.0 or later.
So when I manually add another web service, I assigned a different application pool that supports the .NET Framework 4.0.
How can I automate it?
Is it possible to specify the use of the application pool that I want in the settings file with the pubxml extension.
I want to use the default Website with a different application pool instead of using the default application pool.
Thanks.
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <WebPublishMethod>MSDeploy</WebPublishMethod> <SiteUrlToLaunchAfterPublish>http://localhost/Manager/ODataManager.svc</SiteUrlToLaunchAfterPublish> <MSDeployServiceURL>localhost</MSDeployServiceURL> <DeployIisAppPath>Default Web Site/Manager</DeployIisAppPath> <RemoteSitePhysicalPath /> <SkipExtraFilesOnServer>True</SkipExtraFilesOnServer> <MSDeployPublishMethod>InProc</MSDeployPublishMethod> <UserName /> <_SavePWD>False</_SavePWD> <PublishDatabaseSettings> <Objects xmlns="" /> </PublishDatabaseSettings> </PropertyGroup> </Project>
source share