来源:Server 2012 R2 目标:Server 2012
这是我用来导出的命令:
C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy -verb:sync -source:apphos
tconfig="mywebsite" -dest:package=c:\test.zip,encryptPassword=password -skip:Directory= -skip:File=
以下是我在尝试导入时在 IIS 中遇到的错误:
Microsoft.Web.Deployment.DeploymentException:无法将子对象“customFields”添加到对象“logFile”。“logFile”提供程序可能不支持此部署。在 Microsoft.Web.Deployment.DeploymentObject.AddChild(DeploymentObject source, Int32 position, DeploymentSyncContext syncContext) 在 Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObject sourceObject, Int32 position) 在 Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder (DeploymentObject dest, DeploymentObject source) at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source) at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest,
我应该在一英里外看到这个...
我解压缩了备份文件并编辑了archive.xml 文件,删除了带有“customFields”的行。问题解决了。