c# - migrate Configuration Management Application Block .net1.1 to system.configuration -


i have migrate large .net 1.1 application .net 3.5.

the system used configuration management application block (cmab) load config files starting app.config file as:

<configuration> <configsections>     <section          name="applicationconfigurationmanagement"          type="microsoft.applicationblocks.configurationmanagement.configurationmanagersectionhandler,microsoft.applicationblocks.configurationmanagement, version=1.0.0.0,culture=neutral,publickeytoken=e64cb664730084d3" />     <section         name="myappsystemsettings"         type="microsoft.applicationblocks.configurationmanagement.xmlhashtablesectionhandler,microsoft.applicationblocks.configurationmanagement, version=1.0.0.0,culture=neutral,publickeytoken=e64cb664730084d3" /> </configsections>  <appsettings>     <!-- key / value pairs --> </appsettings>  <!-- ##   configuration management settings   ## --> <applicationconfigurationmanagement defaultsection="myappsystemsettings">     <configsection name="myappsystemsettings">         <configcache enabled="true" refresh="* 6 * * *" />         <configprovider              assembly="microsoft.applicationblocks.configurationmanagement, version=1.0.0.0,culture=neutral,publickeytoken=e64cb664730084d3"              type="microsoft.applicationblocks.configurationmanagement.storage.xmlfilestorage"             signed="false"              refreshonchange="false"              encrypted="false"              path="c:\program files\myapp\config\myappsystemsettings.config" />     </configsection> </applicationconfigurationmanagement> </configuration> 

as can seen referencing myappsystemsettings.config 'sub' config file looks like:

<configuration> <myappsystemsettings>     <xmlserializablehashtable xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">       <entries>         <entry>           <key xsi:type="xsd:string">key0</key>           <value xsi:type="xsd:string">value0</value>         </entry>         <entry>           <key xsi:type="xsd:string">key1</key>           <value xsi:type="xsd:string">value1</value>         </entry>         <entry>           <key xsi:type="xsd:string">extraconfigfile</key>           <value xsi:type="xsd:string">c:\program files\myapp\config\extraconfig.xml</value>         </entry>      </xmlserializablehashtable>   </myappsystemsettings> </configuration> 

considering app.config file refers 10+ 'sub' config files similar myappsystemsettings.config , each contain 100+ entries i'm looking simplest way migrate them use system.configuration correctly give me same results .net 1.1 solution using cmab?


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -