来源: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 源、Int32 位置、DeploymentSyncContext syncContext)在 Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent、DeploymentObject sourceObject、Int32 位置)在 Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject 目标、DeploymentObject 源)在 Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject 目标、DeploymentObject 源)在 Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject 目标、DeploymentObject 源)在 Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject 目标、DeploymentObject 源)在 Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject 目标对象、DeploymentObject 源对象)在Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject、DeploymentSyncOptions syncOptions、PayloadTable payloadTable、ContentRootTable contentRootTable、Nullable`1 syncPassId、String syncSessionId) 在 Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions、DeploymentBaseOptions baseOptions、DeploymentSyncOptions syncOptions) 在 Microsoft.Web.Deployment.UI.InstallProgressWizardPage.OnWorkerDoWork(Object sender、DoWorkEventArgs e) 在 System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object 参数)
答案1
我应该在几英里外就看到这个……
我解压了备份文件并编辑了archive.xml文件,删除了包含“customFields”的行。问题解决了。