使用 MSDEPLOY 在伺服器之間導出導入網站時出現“CustomFields”錯誤
來源: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”的行。問題解決了。