Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I get the following error when I try to use the Web Deployment Tool and a URL is the path of a virtual directory:

C:\Program Files\IIS\Microsoft Web Deploy>msdeploy -verb:sync -source:metakey=lm/w3svc -dest:archivedir=c:\archive,encryptPassword=mypassword > msdeployachive.log

Error: File system path '' is not valid. Only absolute paths are supported. Error count: 1.

This appears to be the part of the metabase (IIS 6) it is complaining about:

<IIsWebVirtualDir   Location ="/LM/W3SVC/9999999999/root/stuff"

Unfortunately there are hundreds of virtual directories like this with a URL as the path.

Anyone know of a solution or a good alternative for migrating hundreds of sites from IIS 6 to IIS 7?


share|improve this question
up vote 1 down vote accepted

I got it to run like this:

msdeploy -verb:sync -source:metakey=lm/w3svc,filePath.ignoreErrors=0x8000020;0x80070005 -skip:attributes.value="http:/*$" -dest:archivedir=c:\archive,encryptPassword=mypassword -verbose -debug > msdeployarchive.log
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.