I was able to sync the content directory and create the app pool using msdeploy, but when I try to create the website definition, I get:
Error: An error occurred when committing changes to the IIS Configuration System. The identity performing the operation was 'IISServer5\Administrator'.
Error: Bad Data. (Exception from HRESULT: 0x80090005)
Error count: 1
I get this regardless of whether I'm logged in with a domain account with administrative privs or the local Admin account. Here's the output of -debug:
C:\>"c:\program files\iis\microsoft web deploy\msdeploy" -verb:sync -source:apph
ostconfig="test.somesite.com",computerName=IISServer4.com -dest:apphostConfig="test.somesite.com" -debug
Action: Adding MSDeploy.appHostConfig (MSDeploy.appHostConfig)
Action: Adding appHostConfig (test.somesite.com)
Action: Adding child binding (MSDeploy.appHostConfig/appHostConfig[@path='test.s
omesite.com']/site[@name='test.somesite.com']/bindings/binding)
Action: Adding child application (MSDeploy.appHostConfig/appHostConfig[@path='te
st.somesite.com']/site[@name='test.somesite.com']/application[@path='/']
)
Action: Adding child virtualDirectory (MSDeploy.appHostConfig/appHostConfig[@pat
h='test.somesite.com']/site[@name='test.somesite.com']/application[@path
='/']/virtualDirectory[@path='/'])
Microsoft.Web.Deployment.DeploymentException: An error occurred when committing
changes to the IIS Configuration System. The identity performing the operation w
as 'IISServer5\Administrator'. ---> System.Runtime.InteropServices.COMExcept
ion (0x80090005): Bad Data. (Exception from HRESULT: 0x80090005)
at Microsoft.Web.Deployment.AppHostWritableAdminManager.CommitChanges()
at Microsoft.Web.Deployment.AdminManagerWrapper.CommitChangesWithException(IA
ppHostWritableAdminManager adminManager)
--- End of inner exception stack trace ---
at Microsoft.Web.Deployment.AdminManagerWrapper.CommitChangesWithException(IA
ppHostWritableAdminManager adminManager)
at Microsoft.Web.Deployment.AdminManagerWrapper.CommitChanges(DeploymentCommi
tContext commitContext)
at Microsoft.Web.Deployment.DeploymentCommitContext.CommitChanges(DeploymentS
yncOptions syncOptions, DeploymentBaseContext baseContext)
at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject
destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, Conten
tRootTable contentRootTable)
at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions
providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncO
ptions)
at MSDeploy.MSDeploy.Execute()
at MSDeploy.MSDeploy.Main(String[] unusedArgs)
Error count: 1
This was the result of a "pull" from the destination server. A Push from the source server delivers the same error message. I also get the same message if I use the metakey: method.