为什么此web.config转换说明无法找到applicationSettings元素? [英] Why does this web.config transform say it can't find the applicationSettings element?

查看:84
本文介绍了为什么此web.config转换说明无法找到applicationSettings元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在TeamCity中转换web.config文件时出现以下错误.它发生在元素<applicationSettings xdt:Transform="Replace">上.

I get the following error while transforming a web.config file in TeamCity. It happens on the element, <applicationSettings xdt:Transform="Replace">.

源文档中没有元素与'/configuration/applicationSettings'匹配

No element in the source document matches '/configuration/applicationSettings'

源文件具有此设置.知道如何解决这个问题吗?

The source file has this setting. Any idea how to solve this?

推荐答案

我不得不从configuration节点中删除名称空间属性.在声明的架构和我使用的元素中存在一些冲突.

I had to remove the namespace attribute from the configuration node. There is some conflict in the declared schema and the elements I was using.

xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"

这篇关于为什么此web.config转换说明无法找到applicationSettings元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆