B
Ben
Hi,
I have a DLL that supplies functionality to a web service and some console
applications. It reads some of its information (sensitive stuff) from the
registry and the rest from the config file of the caller. In the config file
I have several custom sections all using the NameValueSectionHandler.
Now when I run the NUnit tests using the NUnit GUI everything works fine but
when I launch the web service, it reads data from the first custom config
section, but when it encounters a subsequent call to another config section,
it throws up a Configuration Exception saying "Could not Create Handler.--
System.TypeLoad exception.
I tried putting in all the parameters for the config section such as the
Public Key etc but to no avail. Initially I had not grouped all the config
sections under one <sectionGroup>. I did this, but the same problem
persists.
Is there a recognised problem in using multiple custom sections that use the
NameValueSectionHandler in web services and web apps? Should i resort to
writing a custom config handler?
Any thoughts?
Cheers
Santosh
I have a DLL that supplies functionality to a web service and some console
applications. It reads some of its information (sensitive stuff) from the
registry and the rest from the config file of the caller. In the config file
I have several custom sections all using the NameValueSectionHandler.
Now when I run the NUnit tests using the NUnit GUI everything works fine but
when I launch the web service, it reads data from the first custom config
section, but when it encounters a subsequent call to another config section,
it throws up a Configuration Exception saying "Could not Create Handler.--
System.TypeLoad exception.
I tried putting in all the parameters for the config section such as the
Public Key etc but to no avail. Initially I had not grouped all the config
sections under one <sectionGroup>. I did this, but the same problem
persists.
Is there a recognised problem in using multiple custom sections that use the
NameValueSectionHandler in web services and web apps? Should i resort to
writing a custom config handler?
Any thoughts?
Cheers
Santosh