Hey,
I met an issue when I use webdeploy to sync an application under website .
the env as follows:
two Windows Server 2008 R2 IIS Server named Server1 & Server2.
each Server has one Web Site named Site1 and a lot of applications under the site1.
one day I add an application "app1" (The phyiscal path is c:\inetsrv\Site1\SM\app1\,add to Application Pool “Pool1",.net framework 2.0) on Server1.
( there are two application pools named "pool1" & "Pool2" .net framework2.0 on Server1 & Server2).
I want to using web deploy to sync it to Server2:
msdeploy -verb:sync -source:iisApp="Site1/app1" -dest:iisApp="Site1/app1",computername=Server2
The command is successful and the application name is ok under Site1,but the physical path & application pool are different from Server1.
it changed,the phyiscal path is c:\inetsrv\Site1\root\app1\ and application pool is "Pool2" .net framework 2.0)
How I can keep the same physical path and application pools on server2 after sync?
May I need to append some argments or change other command?
Really need your help,Thanks a lot!!