无法处理节点类型为“文本”的元素。azure devops 版本中仅支持 Element 和 EndElement 节点类型

Dha*_*i S 1 azure-devops

我正在 Azure Devops 中为 DotNet 应用程序执行发布和部署。

在执行发布时,“部署 IIS 应用程序”任务抛出错误为

System.Management.Automation.Remoting.PSRemotingTransportException:
The background process reported an error with the following message:
Cannot process an element with node type "Text".
Only Element and EndElement node types are supported.

at System.Management.Automation.Remoting.OutOfProcessUtils.ProcessData(String data, DataProcessingDelegates callbacks).
Run Code Online (Sandbox Code Playgroud)

你能帮我解决这个错误吗,我需要部署我的应用程序。

小智 5

我在 Azure Devops 上遇到了类似的问题,解决方法是取消选中 Deploy IIS App Task 中的“Deploy in Parallel”选项。希望这对您有所帮助。