Hi,
I have a problem in accessing "sqlServerCatal ogNameOverwrite s" section in app.config file.
Third party software requires such configuration which i need to modify programatically .
I've tried
but this accesses readonly configuration information.
I've also tried
Now i'm in stuck accessing key-value pair.
I should implement "ConfigurationS ection", "ConfigurationE lement", "ConfigurationP roperty" and point to my own type in config file.
Problem is i can't change type, section type must be System.Configur ation.NameValue SectionHandler.
Is any way to change the configuration?
Any help is appreciated.
I have a problem in accessing "sqlServerCatal ogNameOverwrite s" section in app.config file.
Code:
<configuration>
<configSections>
<section name="sqlServerCatalogNameOverwrites" type="System.Configuration.NameValueSectionHandler" />
</configSections>
<sqlServerCatalogNameOverwrites>
<add key="ISDev17" value="ISDev18" />
</sqlServerCatalogNameOverwrites>
</configuration>
I've tried
Code:
ConfigurationManager.GetSection("sqlServerCatalogNameOverwrites")
I've also tried
Code:
Configuration config = ConfigurationManager.OpenExeConfiguration (ConfigurationUserLevel.None);
ConfigurationSection section = config.GetSection("sqlServerCatalogNameOverwrites");
I should implement "ConfigurationS ection", "ConfigurationE lement", "ConfigurationP roperty" and point to my own type in config file.
Problem is i can't change type, section type must be System.Configur ation.NameValue SectionHandler.
Is any way to change the configuration?
Any help is appreciated.