I came across an interesting problem today with MSDeploy whilst trying to recycle the application pool from a custom manifest.
Here's the manifest:
<?xml version="1.0" encoding="utf-8"?>
<sitemanifest>
<RecycleApp path="SiteName" recycleMode="StopAppPool" />
<IisApp path="c:\projects\test\app1" managedRuntimeVersion="v4.0" />
<RecycleApp path="SiteName" recycleMode="StartAppPool" />
</sitemanifest>
and here's the error:
EXEC : error : Object of type 'manifest' and path 'c:\projects\app1\DeployManifests\DeployManifest.xml' cannot be created. [c:\projects\app1\Build.proj]
EXEC : error : One or more entries in the manifest 'sitemanifest' are not valid. [c:\projects\app1\Build.proj]
EXEC : error Code: ERROR_SITE_DOES_NOT_EXIST [c:\projects\app1\Build.proj]
The error is actually helpful in that it's telling us what is wrong (the site is missing) and to fix the problem you just need to make suire the site exists but for me this runs on our build server so the sites don't exist!
This is pretty useless and I haven't found a workaround for it so I've been finding that whilst MSDeploy is really good for some thing like file copying it's rather bad at other things so my adive is to use remote powershell to do anything "slightly complicated".
5c53696f-9607-4559-8a48-1e3ebe99867c|0|.0