Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing the Config Section when updating a module.Using the Config Section when updating a module.
Previous
 
Next
New Post
5/2/2011 1:24 PM
 
I am using 5.6.2 and using devExpress controls in the project. When devExpress updates their control I need to update sections in the web.config file when I update my module. I tried unsucessfully to specify the path correctly for the node when it is in the configuartins section with a name other than dotnetnuke net. Here is a sample.



<nodes>

      <node path="/configuration/configSections/[ab:sectionGroup/@name='devexpress']" targetpath="/configuration/configSections/[ab:sectionGroup/@name='devexpress']" key="name" action="update" collision="overwrite">

                    <section name="settings" type="DevExpress.Web.ASPxClasses.SettingsConfigurationSection, DevExpress.Web.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />

</node>



if I specify path="/configuration/configSections/sectionGroup" it will uodate the first sectionGroup name= "dotnetnuke"



Does anyone know how to specify the correct path to a different sectionGroup of the configSections?



Thanks,

Walt

 
New Post
5/2/2011 8:13 PM
 
Well this is strange even the following return an error.

<component type="Assembly">

     <assemblies>

     <basePath>bin</basePath>

     <assembly>

       <name>DevExpress.Data.v10.2.dll</name>

     </assembly>

     <assembly>

      <name>DevExpress.Web.ASPxEditors.v10.2.dll</name>

     </assembly>

     <assembly>

       <name>DevExpress.Web.v10.2.dll</name>

     </assembly>

     </assemblies>

  </component> 

  <component type="Config">

          <config>

            <configFile>web.config</configFile>

            <install>

              <configuration>

                <nodes>

        <node path="/configuration/system.webserver/modules" action="update" key="name" collision="overwrite">

                        <add name="ASPxHttpHandlerModule" type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />

                    </node>

     <node path="/configuration/system.web/httpModules" action="update" key="name" collision="overwrite">

                        <add name="ASPxHttpHandlerModule" type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />

                    </node>

                 </nodes>

              </configuration>

            </install>

            <uninstall>

              <configuration>

                <nodes />

              </configuration>

            </uninstall>

          </config>

  </component>



the  as follows

ExceptionSystem.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.Installer.XmlMerge.UpdateNode(XmlNode rootNode, XmlNode actionNode) at DotNetNuke.Services.Installer.XmlMerge.ProcessNode(XmlNode node) at DotNetNuke.Services.Installer.XmlMerge.ProcessNodes(XmlNodeList nodes, Boolean saveConfig) at DotNetNuke.Services.Installer.XmlMerge.UpdateConfig(XmlDocument target) at DotNetNuke.Services.Installer.Installers.ConfigInstaller.Install()



Am I missing something? When I make the changes manually it works fine.



Any help would be appreciated.



Walt

 
New Post
5/5/2011 2:39 PM
 
For those who care I finally figured it out.



1. inthe the install/config folder of the installation is a wealth of examples to find what you need,

2. the path is   path="/configuration/configSections/sectionGroup[@name='devExpress']"

3. In the second post it was a typo system.webserver is supposed to be system.webServer. Watch your case you will waste alot of time if you don't.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing the Config Section when updating a module.Using the Config Section when updating a module.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out