msdeploy - 当文件已存在时无法创建该文件

问题描述 投票:0回答:1

我们正在尝试使用以下命令将 IIS 10 从一台服务器迁移到另一台服务器:

msdeploy -verb:sync -source:webServer,computername=academicApp01T -dest:webServer,computername=WEBAAPPT01WA, -enablelink:AppPoolExtension -disableLink:Content -replace:objectName=metaProperty,scopeAttributeName=name,scopeAttributeValue="ServerBindings",match=sourceIP,replace=newdestinationIP

但我们不断收到以下错误。我们“完整”安装了 msdeploy(而不是自定义或典型)

C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy -verb:sync -source:webServer,computername=academicApp01T -dest:webServer,computername=WEBAAPPT01WA, -enablelink:AppPoolExtension -disableLink:Content -replace:objectName=metaProperty ,scopeAttributeName=名称,scopeAttributeValue="ServerBindings",match=源IP,替换=新目标IP 信息:使用 ID 'ab29a6b0-c2d7-4e0c-afad-f410a54db50c' 连接到远程服务器。 信息:使用 ID“830a233d-98f3-4a9a-ab8e-c4437cb94b92”连接到远程服务器。 信息:更新部分(MSDeploy.webServer/webServer/appHostConfig[@path='']/configSections/sectionGroup[@name='system.webServer']/section[@name='httpCompression'])。 信息:添加子 appHostConfig (MSDeploy.webServer/webServer/appHostConfig[@path='']/location[@path=''])。 错误:(12/28/2023 9:36:54 AM) 在远程计算机上处理请求时发生错误。 错误: 当文件已存在时无法创建该文件。 (HRESULT 异常:0x800700B7)

iis webdeploy
1个回答
0
投票

原因:

“C:\Windows\System32\inetsr”中存在重复的架构配置 xml 文件

© www.soinside.com 2019 - 2024. All rights reserved.