“间歇”;已经添加了具有相同关键字的项目“;远程MSDeploy期间出错
本文关键字:项目 关键字 远程 MSDeploy 出错 间歇 添加 | 更新日期: 2023-09-27 18:26:19
在调用MSDeploy将Web包部署到远程计算机时,我们收到以下错误:
msdeploy.exe -source:package='G:'workspace'webPackage'WebPackage.zip' -dest:auto,computerName="HOST",includeAcls="False" -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"G:'workspace'webPackage'SetParameters.xml"
Error: (12/10/2015 2:55:36 PM) An error occurred when the request was processed on the remote computer.
Error: An item with the same key has already been added.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Microsoft.Web.Deployment.DeploymentManager.SanitizePath(DeploymentProviderOptions providerOptions)
at Microsoft.Web.Deployment.DeploymentAgentWorkerRequest.GetTraceMessage(String[] additionalMessage)
at Microsoft.Web.Deployment.DeploymentAgent.HandleSync(DeploymentAgentAsyncData asyncData, Nullable`1 passId)
at Microsoft.Web.Deployment.DeploymentAgent.HandleRequestWorker(DeploymentAgentAsyncData asyncData)
at Microsoft.Web.Deployment.DeploymentAgent.HandleRequest(DeploymentAgentAsyncData asyncData)
at Microsoft.Web.Deployment.DeploymentAgent.BeginProcessRequest(DeploymentAgentWorkerRequest workerRequest, AsyncCallback callback, Object extraData)
这似乎发生在MSDeploy深处的某个地方。奇怪的是,这种情况并不总是发生;再次运行此命令似乎有效。有什么想法吗?
您的包中有重复的项目吗?
https://forums.iis.net/t/1149928.aspx?An+物品+带有+相同+钥匙+已经+已经+添加+
一键发布:执行发布时出现异常:已添加具有相同密钥的项目