How can I specify an application pool when deploying my web service in IIS

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"?> <!-- This file is used by the publish/package process of your Web project. You can customize the behavior of this process by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121. --> <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> 
+4
source share

Source: https://habr.com/ru/post/1485065/


All Articles