Hi,
I've been using Web Deployment Tool for some time, but now i have to restore an site hosted on IIS 10 to a server with IIS 7.5.
The website was running in IIS 7.5 until some weeks ago. We create a new server with IIS 10, and used msdeploy version 9.0.19730 to import the site from IIS 7.5 for IIS 10 (perfect, without any issues).
We keep the two sites running side by side (responding to diferent URL's)
Now we have some problem with the server running IIS 7.5 (unfortunately we could't upgrade the windows version on this server at this moment).
I’ve create a package with the site content in IIS 10:
msdeploy -verb:sync -source:webserver -dest:package=E:\IIS10.zip,encryptPassword= SOMEPASS > msdeploysync.log
When i try to restore it on IIS 7.5:
msdeploy -verb:sync -source:package=E:\IIS10.zip,encryptPassword= SOMEPASS -dest:webserver > msdeployrestore.log
Error: Child object 'customFields' cannot be added to object 'logFile'. The 'logFile' provider may not support this deployment.
Error count: 1.
Following this thread: https://serverfault.com/questions/715407/customfields-error-when-using-msdeploy-to-export-import-website-between-server
I've unziped the IIS10.zip file and editted archive.xml file removing the line with the "customFields".
Then genereted a new zip file (IIS10Edited.zip)
Now running:
msdeploy -verb:sync -source:package=E:\IIS10Edited.zip,encryptPassword= SOMEPASS -dest:webserver > msdeployrestore1.log
I received the error:
Error: Source (contentPath) and destination (webServer) are not compatible for the given operation.
Error count: 1.
Changing the command to:
msdeploy -verb:sync -source:package=E:\IIS10Edited.zip,encryptPassword= SOMEPASS -dest:auto > msdeployrestore1.log
Error Code: ERROR_SITE_DOES_NOT_EXIST
More Information: Site '.' does not exist. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_SITE_DOES_NOT_EXIST.
Error count: 1.
Some ideas of how work aroung this problem?
Thanks in advance.