V
vasu devan via DotNetMonster.com
Hi,
I am two config section with same config section handler like follow.
<section name="Myformatters"
type="MyFramework.Configuration.FileHandlers.MyConfigFileHandler,
MyFramework"/>
<section name="Myserviceproxies"
type=MyFramework.Configuration.FileHandlers.MyConfigFileHandler,
MyFramework"/>
And my sections looks like the following,
<Myserviceproxies>
<proxies>
<proxy name="1" type="MyServiceProxy.Class1,MyServiceProxy"/>
</proxies>
</Myserviceproxies>
<Myformatters>
<formatters>
<formatter name="1"type="MyServiceProxy.Class1,VinServiceProxy"/>
</formatters>
</Myformatters>
When I am trying to access the config settings through
ConfigurationSettings.GetConfig method passing the config section name, it
is working fine for Myserviceproxies config section. But for the second
config section Myformatters the method returns null. Implementatin of
IConfigurationSectionHandler.Create method is not called for Myformatters
section. For Myserviceproxies everything is working fine.
What could be the problem?
with regds,
Vasu
I am two config section with same config section handler like follow.
<section name="Myformatters"
type="MyFramework.Configuration.FileHandlers.MyConfigFileHandler,
MyFramework"/>
<section name="Myserviceproxies"
type=MyFramework.Configuration.FileHandlers.MyConfigFileHandler,
MyFramework"/>
And my sections looks like the following,
<Myserviceproxies>
<proxies>
<proxy name="1" type="MyServiceProxy.Class1,MyServiceProxy"/>
</proxies>
</Myserviceproxies>
<Myformatters>
<formatters>
<formatter name="1"type="MyServiceProxy.Class1,VinServiceProxy"/>
</formatters>
</Myformatters>
When I am trying to access the config settings through
ConfigurationSettings.GetConfig method passing the config section name, it
is working fine for Myserviceproxies config section. But for the second
config section Myformatters the method returns null. Implementatin of
IConfigurationSectionHandler.Create method is not called for Myformatters
section. For Myserviceproxies everything is working fine.
What could be the problem?
with regds,
Vasu