Quantcast
Channel: Web Deployment Tool (MS Deploy)
Viewing all articles
Browse latest Browse all 663

DefaultAppPool will change after deploy even I am not deploy to this appPool

$
0
0

I need to deploy a package zip build by msbuild , and I set the parameter to deploy to a site let say abcSite and the pool  abcPool , it's pipeline mode is integrate.

And did not using DefaultAppPool, the DefaultAppPool is also use integrate as the pipeline mode.

But After deployment DefaultAppPool will be changed to classic as the pipeline mode, as some website is using DefaultAppPool , so they throw error.

More information:

This is the pubxml for msbuild.

<?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>Package</WebPublishMethod><LastUsedBuildConfiguration>Trunk</LastUsedBuildConfiguration><LastUsedPlatform>Any CPU</LastUsedPlatform><SiteUrlToLaunchAfterPublish /><LaunchSiteAfterPublish>True</LaunchSiteAfterPublish><ExcludeApp_Data>False</ExcludeApp_Data><DesktopBuildPackageLocation>C:\package\abc.Zip</DesktopBuildPackageLocation><PackageAsSingleFile>true</PackageAsSingleFile><DeployIisAppPath>abcSite</DeployIisAppPath></PropertyGroup></Project>

MSBuild command

"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe"
/t:Rebuild
/T:Package /P:Configuration=Debug;
PublishProfile="D:\...\xxx.pubxml";AutoParameterizationWebConfigConnectionStrings=false "D:\...\xxx.csproj"

MSDeploy Command

C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe
-source:package='C:\package\abc.Zip'
-dest:auto,computerName='dev07',includeAcls='False'
-verb:sync 
-disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParam:name='IIS Web Application Name',value='abcSite' -setParam:name='IIS Web Application Pool Name',value='abcPool' -setParam:name='IisVirtualDirectoryPhysicalPath',value='C:\abc'

I want to ask how to fix it?


Viewing all articles
Browse latest Browse all 663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>