gpt4 book ai didi

iis - Web 部署错误 - "Child object ' environmentVariables' cannot be added to object 'add' 。 'add' 提供商可能不支持此部署。”

转载 作者:行者123 更新时间:2023-12-01 13:51:53 25 4
gpt4 key购买 nike

我已经为 ASP.NET 4.5 Web 应用程序中托管的 WCF 服务创建了一个 Web 部署包(一个 ZIP 文件)。当我尝试部署包时,出现以下错误:

Child object 'environmentVariables' cannot be added to object 'add'.
The 'add' provider may not support this deployment.

堆栈跟踪是:

Microsoft.Web.Deployment.DeploymentException: Child object 'environmentVariables' cannot be added to object 'add'. The 'add' provider may not support this deployment.
at Microsoft.Web.Deployment.DeploymentObject.AddChild(DeploymentObject source, Int32 position, DeploymentSyncContext syncContext)
at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObject sourceObject, Int32 position)
at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject source)
at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObject sourceObject, Int32 position)
at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject source)
at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject, DeploymentObject sourceObject)
at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable, Nullable`1 syncPassId, String syncSessionId)
at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)
at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentWellKnownProvider provider, String path, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)
at Microsoft.Web.Deployment.UI.InstallProgressWizardPage.OnWorkerDoWork(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

我还没有想出如何解决这个问题,但我注意到部署包 ZIP 文件中的 archive.xml 有一个 <environmentVariables>元素嵌套在 <add> 中嵌套在 <appPoolConfig> 中的元素元素。

源 IIS 站点位于 IIS Express(版本 10,因为我还安装了 Visual Studio 2015 RC)。目标 IIS 版本为 7.5 (Windows Server 2008 R2)。

Web部署包是在运行Windows 7的Visual Studio 2013中创建的,在Programs and Features中安装的WebDeploy版本是3.6(3.1238.1953)。

有谁知道如何解决或解决这个问题?

最佳答案

试试这个:-skip:objectname=environmentVariables

例子:

"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:package='' -verb:sync -enableLink:AppPoolExtension -disableLink:ContentExtension -skip:objectname=binding -skip:objectname=environmentVariables -skip:objectname=virtualDirectory -skip:objectname=virtualDirectoryDefaults

关于iis - Web 部署错误 - "Child object ' environmentVariables' cannot be added to object 'add' 。 'add' 提供商可能不支持此部署。”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31082820/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com