我嘗試使用下面的命令做一個MSDeploy:MSDeploy到IIS6
"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"
它將被部署到是Win2003的服務器上運行IIS 6,當我運行從WinXP的此命令的服務器哈德森CI奴隸,它工作得很好。但是,在新的Win7從站上運行此操作會給我以下錯誤:
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.
任何想法?請讓我知道是否需要更多信息。
我沒有部署到IIS7。正在從IIS7服務器對IIS 6服務器進行部署。謝謝你的回答,雖然 - 我已經設法解決這個問題(我會發布什麼是錯誤的答案和關閉這個問題)。 –