We use a shared config setup so I turned that off and then made the zip file using Web Deploy (V3). When I moved it to the new machine it had only grabbed one site. We have a bunch (about 1600+ sites). Is there some option I'm missing to get it to grab
all of the sites?
FYI, when I first ran it gave me: AppPoolNotFound dependency check found the AppPool 'x' to be in use by the source data but not defined in source data or on the detination computer...
I then ran it with ' -enableLink:AppPoolExtension' and that appeared to work. Well, it didn't give AppPoolNotFound error but as I stated, it only did one site.
How you take the back up of the server using a command prompt or using gui? and which OS you are using? both are the same iis version?
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
As you know Windows 2008 R2 use iis 7.5 and 2016 use iis 10 both are the different iis version. try to back up using msdeploy -verb:sync -source:webServer -dest:package=C:\IIS_Backups\IISServerBackup.zip . also try to use web deploy using gui. did you get
any error message?
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Warning: Skipping source dirPath (\\<servername>\CustomerFiles\SP0000607\Public\images) because of rule SkipInvalidSource. Could not find directory '\\<servername>\CustomerFiles\SP0000607\Public\images'.
I replaced my actual server name with <servername> which I'm sure you figured out.
and this:
Error: The property 'blob' located at '/webServer/appHostConfig[@path='']/locati on[@path='']/section[@name='system.applicationHost/sites']/sites/site[@name='adm in.aghost.net']/bindings/binding/httpCert[@binding='*:443:domain.name.net']/cer t' is marked as secure. You must specify an encryption password to archive this property. Error count: 1.
OK so I'm tracking progress here even though I'm searching for answers on each issue I encounter. I got passed the error above using encryptPassword= option. Still not sure what to do about the non-local path warning. Attempted to deploy on the new 2016
server anyway in hopes I could fix the path problems after the fact. Now I get this:
Error: The AppPoolNotFound dependency check found the AppPool 'my.website.net' to be in use by the source data but not defined in source data or on the destination computer. Applications referencing this application pool will have configuration issues. Error: The AppPoolNotFound dependency check found the AppPool 'my.webiste2.net' to be in use by the source data but not defined in source data or on the destination computer. Applications referencing this application pool will have configuration issues. Error: The synchronization was stopped by the 'DependencyCheckFailOnError' rule because one or more dependency checks were triggered at the 'Error' level. Error count: 1.
I'll continue searching for answers but if someone knows can post here this will just serve as one more source for others. Thank you!
Then you should be able to migrate a single site as example.
When you are certain a site can be migrated successfully, you can move on to other sites. A rush to migrate all sites in one step won't work as you wished, as so many things can break at the same time.
You should also perform migration with two servers online in a single command,
5 Posts
Web Deploy not getting all of my sites
Aug 28, 2019 05:38 PM|mustang5o|LINK
We use a shared config setup so I turned that off and then made the zip file using Web Deploy (V3). When I moved it to the new machine it had only grabbed one site. We have a bunch (about 1600+ sites). Is there some option I'm missing to get it to grab all of the sites?
FYI, when I first ran it gave me: AppPoolNotFound dependency check found the AppPool 'x' to be in use by the source data but not defined in source data or on the detination computer...
I then ran it with ' -enableLink:AppPoolExtension' and that appeared to work. Well, it didn't give AppPoolNotFound error but as I stated, it only did one site.
976 Posts
Re: Web Deploy not getting all of my sites
Aug 29, 2019 03:16 AM|Jalpa Panchal|LINK
Hi,
How you take the back up of the server using a command prompt or using gui? and which OS you are using? both are the same iis version?
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
5 Posts
Re: Web Deploy not getting all of my sites
Aug 31, 2019 04:39 PM|mustang5o|LINK
Created the backup using command prompt. Source server is Windows 2008 R2 and destination is 2016.
976 Posts
Re: Web Deploy not getting all of my sites
Sep 02, 2019 09:03 AM|Jalpa Panchal|LINK
Hi,
As you know Windows 2008 R2 use iis 7.5 and 2016 use iis 10 both are the different iis version. try to back up using msdeploy -verb:sync -source:webServer -dest:package=C:\IIS_Backups\IISServerBackup.zip . also try to use web deploy using gui. did you get any error message?
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
5 Posts
Re: Web Deploy not getting all of my sites
Sep 02, 2019 01:18 PM|mustang5o|LINK
Yes I know the IIS versions are different which is why I'm trying to use web deploy. I'm following a guide I found that had me run this:
msdeploy -verb:sync -source:metakey=lm/w3svc/1 -dest:package=c:\Site1.zip > WebDeployPackage.log
I think I see now what the problem is. I'll try the way you sent or the gui next and see what happens. Thank you!
5 Posts
Re: Web Deploy not getting all of my sites
Sep 03, 2019 02:21 PM|mustang5o|LINK
Using your command line option I received this:
Warning: Skipping source dirPath (\\<servername>\CustomerFiles\SP0000607\Public\images) because of rule SkipInvalidSource. Could not find directory '\\<servername>\CustomerFiles\SP0000607\Public\images'.
I replaced my actual server name with <servername> which I'm sure you figured out.
and this:
Error: The property 'blob' located at '/webServer/appHostConfig[@path='']/locati
on[@path='']/section[@name='system.applicationHost/sites']/sites/site[@name='adm
in.aghost.net']/bindings/binding/httpCert[@binding='*:443:domain.name.net']/cer
t' is marked as secure. You must specify an encryption password to archive this
property.
Error count: 1.
8518 Posts
MVP
Re: Web Deploy not getting all of my sites
Sep 03, 2019 02:39 PM|lextm|LINK
You were following a wrong guide, as that kind of source switch is for IIS 6 (which is long dead).
https://lextudio.com
---------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
5 Posts
Re: Web Deploy not getting all of my sites
Sep 03, 2019 02:46 PM|mustang5o|LINK
OK so I'm tracking progress here even though I'm searching for answers on each issue I encounter. I got passed the error above using encryptPassword= option. Still not sure what to do about the non-local path warning. Attempted to deploy on the new 2016 server anyway in hopes I could fix the path problems after the fact. Now I get this:
Error: The AppPoolNotFound dependency check found the AppPool 'my.website.net' to be in use by the source data but not defined in source data or on the destination computer. Applications referencing this application pool will have configuration issues.
Error: The AppPoolNotFound dependency check found the AppPool 'my.webiste2.net' to be in use by the source data but not defined in source data or on the destination computer. Applications referencing this application pool will have configuration issues.
Error: The synchronization was stopped by the 'DependencyCheckFailOnError' rule because one or more dependency checks were triggered at the 'Error' level.
Error count: 1.
I'll continue searching for answers but if someone knows can post here this will just serve as one more source for others. Thank you!
8518 Posts
MVP
Re: Web Deploy not getting all of my sites
Sep 03, 2019 11:02 PM|lextm|LINK
Can you ever go back to the origin to assert what are the dependencies of a single site?
https://docs.microsoft.com/en-us/iis/publish/using-web-deploy/synchronize-iis#part-1---view-your-sites-dependencies
Then you should be able to migrate a single site as example.
When you are certain a site can be migrated successfully, you can move on to other sites. A rush to migrate all sites in one step won't work as you wished, as so many things can break at the same time.
You should also perform migration with two servers online in a single command,
https://docs.microsoft.com/en-us/iis/publish/using-web-deploy/synchronize-iis#part-3--synchronize-your-site-to-the-target
So that Web Deploy can calculate the live differences and suggest what might be changed (-whatif mode).
It is not recommended to go the ZIP way, as that hides away all errors.
https://lextudio.com
---------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.