Search code examples
manifestmsdeploywebdeploy

Object of type 'manifest' and path 'C:\CustomManifest.xml' cannot be created


I am struggling with msdeploy (aka Web Deploy). I have tried to create a simple manifest (from the example of MSDN) :

<sitemanifest>
   <appHostConfig path="mySite" />
</sitemanifest>

Unfortunately, any command with this manifest as a source dies with the following message :

msdeploy -verb:dump -source:manifest=c:\CustomManifest.xml
Error: Object of type 'manifest' and path 'C:\CustomManifest.xml' cannot be created.
Error: One or more entries in the manifest 'sitemanifest' are not valid.
Error Code: ERROR_SITE_DOES_NOT_EXIST
More Information: Site 'mySite' does not exist.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_SITE_DOES_NOT_EXIST.
Error count: 1.

Any Idea ?


Solution

  • OK, finally understood my issue : a manifest is made only to export what you need. It is not made to generate something from scratch. To generate a web site, the package provider has to be used.