473,327 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

System.Configuration.ConfigurationException

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
Nov 16 '05 #1
1 3766
>it throws up a Configuration Exception saying "Could not Create Handler.--
System.TypeLoad exception.
Hmm... sounds almost as if it can't decide which version of handler to
create - you don't happen to have both .NET 1.0 and 1.1 installed ??
TypeLoad usually means it can't load the correct version of a given
type / assembly......

Any chance you can SHOW us the offending .config file?
Is there a recognised problem in using multiple custom sections that use the
NameValueSectionHandler in web services and web apps?
Not to my knowledge, no.
Should i resort to writing a custom config handler?


That would be one way to do it, sure - but quite possibly, it's just
something small that you're facing here (and possibly overlooking in
the heat of debugging ;-)

Marc

================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Louis | last post by:
Hi All, When I build the application, the following error appear: An unhandled exception of type 'System.Configuration.ConfigurationException' occurred in system.dll Additional...
1
by: Chris | last post by:
I have seen the posts on various places on the internet about .NET framework mismatch issues and I don't think that is my problem. ; ) When I execute the following C++.NET code: String...
0
by: Angelos Karantzalis | last post by:
Hi y'all, here's a tricky one: I've written a wrapper around a Com Interop-generated assembly in C#. It's called SDEHandler & implements a previously defined interface, so that I can use it as a...
0
by: phillip | last post by:
This is interesting, I have attached my web.config file and the exception I have been logging. I created a library which provide data access to a database and a control system. The library is...
2
by: RD | last post by:
This code builds without errors, the line is in my declaration section of my form.yet when I execute it I get an unhandled error. Weird thing is I been testing this app all day yesterday, made no...
0
by: Cameron | last post by:
Hi All, I've just written a small program to use a locally hosted webservice which works fine. However I've also written a SOAPExtension for the client and I'm having trouble with the...
0
by: Ankur Goel | last post by:
When I'm running my ASP.NET application, system throws the following exception. Although page is displayed properly but this exception is thrown internally. And also when I'm doing load testing...
1
by: Sky | last post by:
Yesterday I was told that GetType(string) should not just be with a Type, but be Type, AssemblyName. Fair enough, get the reason. (Finally!). As long as it doesn't cause tech support problems...
0
by: stephen | last post by:
Hi all, I am getting this error: An unhandled exception of type 'System.Configuration.ConfigurationException' occurred in system.web.dll Additional information: Exception creating section...
0
by: Someguy | last post by:
I have application settings working for my dll however I can't seem to get the same result with user settings? I assume I need to open 2 configuration managers as shown below. Any idea what I'm...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.