I am trying to migrate a site from iis6 server2k3 32 bit to iis7 server 2008 64 bit. I have successfully migrated a number of sites but am having trouble with the main site. The command line is below. The error is returned on the package creation on the 2k3 iis6 server.
Here's the error
Error: An error was encountered when processing '00000002.ps1'.
Error: The error code was 0x80070020.
Error: The process cannot access 'c:\Inetpub\catalog.wci\00
' because it is being used by a
Error count: 1.
I found the ignoreErrors switch. This apparently works with the objectname filepath or dirpath. I have not specified either of those parameters on the source or destination and instead have used the metakey to move individual websites. I do use filepath with a skip switch to skip files in /documents and settings, not sure why they would be needed, but now get error 0x80070020, being used by another process, on \inetpub\catalog.wci\ . I guess I could continue to skip folders that return errors but I don't know how that wil affect the migration results.
The question is, can I safely skip these folders, can i use the ignoreErrors option, or should I just stop the websites for the duration of the package creation? Any other ideas?
msdeploy -verb:sync -source:metakey=lm/w3svc/228398852
-dest:package=d:\!webstores\xxxxxsapps.zip,encryptPassword=password -enableLink:apppool -skip:objectname=filepath,absolutePath="Documents
and Settings\\*" > d:\!webstores\xxxxxsapps.log