我是sharepoint 2010的新手,我正在尝试将配置文件更新为这样的
<applicationSettings>
<Name.Library.Settings>
<setting name="FromAddress" serializeAs="String">
<value>tasks@munder.com</value>
</setting>
</Name.Library.Settings>
</applicationSettings>
部署具有以下代码的功能
,new ModificationEntry(
"applicationSettings/Name.Library.Settings"
,"configuration/applicationSettings"
,"<Name.Library.Settings/>"
,SPWebConfigModification.SPWebConfigModificationType.EnsureChildNode
,true)
,new ModificationEntry(
"applicationSettings/Name.Library.Settingsname='IsSharepointDeployed']"
,"configuration/applicationSettings/Name.Library.Settings"
,"<setting name='IsSharepointDeployed' serializeAs='String' />"
,SPWebConfigModification.SPWebConfigModificationType.EnsureChildNode
,true)
当我这样做时,我收到以下错误“部署步骤中出现错误'激活功能':表达式必须评估为节点集。”
我相信这告诉我我的xpath查询是错误的。它是configuration / applicationSettings / Name.Library.Settings
任何想法可能有什么问题?
答案 0 :(得分:0)
我不知道这是否解决了你的所有问题,但是:
"applicationSettings/Name.Library.Settings[@name='IsSharepointDeployed']"
可能有帮助。