web-config - DNN 模块卸载如何从 web.config 中删除设置

标签 web-config settings dotnetnuke manifest uninstallation

我有一个 DNN list 文件:

<configuration>
<nodes>
<node path="/configuration/appSettings" action="update" key="key"    collision="overwrite">
<add key="LocalCurrencyCode" value="ARS"/>
</node>

为了卸载,我有这个:

<uninstall>
<configuration>
<nodes>
<node path="/configuration/appsettings/add[@name='LocalCurrencyCode']" action="remove" />

但是,当我卸载该模块时,该设置不会从 web.config 中删除。 谁能看出我做错了什么吗?

最佳答案

已修复:

 <uninstall>
          <configuration>
            <nodes>
              <node path="/configuration/appSettings/add[@key='InvoiceEmailSubject']" action="remove" />

事实证明我需要“appSettings”,因为 xml 节点区分大小写。我还需要使用上面 Dexterity 提供的 @key=。

关于web-config - DNN 模块卸载如何从 web.config 中删除设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30459776/

相关文章:

c# - Web.Config,system.serviceModel 的外部文件

python - 存储 Python 程序设置的官方方式是什么?

asp.net - IIS 7.5 和 ASP.Net 中的身份验证设置有什么区别?

.net - 我的 user.config 设置文件如何损坏?

php - 在数据库表中存储 'website settings' 数据的最佳方式?

jquery - 如何使用 CSS 和 Javascript 旋转(或更改)背景图像

javascript - Google Analytics for DNN (DotNetNuke) 中的自定义标签值

c# - DotNetNuke 升级 Telerik 错误

asp.net - Azure 网站 301 重定向 - 我将其放在哪里?

asp.net - 如何使用 IIS 6 在 ASP.NET 中实现远期过期 header