I am trying to do an MSDeploy using the following command:
"C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\\msdeploy.exe" -source:package='package.zip' -dest:auto,computerName='servername',includeAcls='False' -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"package.SetParameters.xml"
The server it will be deployed to is a Win2003 server running IIS 6. When I run this command from a WinXP Hudson CI slave, it works just fine. However, running this on a new Win7 slave gives me the following error:
Error: (12/21/2014 12:59:17 AM) An error occurred when the request was processed on the remote computer.
Error: The metabase key '/LM/W3SVC' could not be found.
Error: The type initializer for 'Microsoft.Web.Deployment.AxNative' threw an exception. ---> System.IO.IOException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
--- End of inner exception stack trace ---
at Microsoft.Web.Deployment.AxNative.MetabaseGetBaseObject(String serverName, String userName, String password, IAppHostWritableAdminManager manager, Object& objectHandle)
at Microsoft.Web.Deployment.MetaKeyCommitItem..ctor(DeploymentBaseContext baseContext, Boolean useInternalAbo, Boolean isReadOnly)
at Microsoft.Web.Deployment.MetaKeyCommitItem.GetInstance(DeploymentBaseContext baseContext, Boolean useInternalAbo, Boolean isReadOnly)
at Microsoft.Web.Deployment.MetaKeyProvider.get_CommitItem()
at Microsoft.Web.Deployment.MetaKeyProvider.DoesNodeExist(Exception& e)
Error: The library 'C:\Program Files\IIS\Microsoft Web Deploy\x86\axnative.dll' could not be loaded.
Error: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Error count: 1.
Any ideas? Please let me know if more info is needed.
The issue was with MS Deploy installation on the destination win2003 server running IIS6 (HKLM\SOFTWARE\Microsoft\IIS Extensions\Web Deploy was supposed to have a "2" folder for web deploy 2.0, instead it had a "1" folder) .
I just repaired (reinstalled) MS Deploy 2.0 and it fixed the issue.