app.config problems

Mikey

New member
Joined
Oct 18, 2004
Messages
4
Location
Brussels
Ive written a dll which contains 2 web references. Their URL behaviour is set to dynamic, therefore an app.config file was created. However, when compiling, the file does not appear in the output directory. When I copied the file from my source code folder in to the output one, it just ignores it. I then added the following code :

sURL = appConfig.GetValue("CheckBookingService", GetType(String)).ToString()

But it now says that CheckBookingService is not in the config file, but it is there. Ive tried renaming the file to appname.dll.config and to web.config then back to app.config. I even deleted the file altogether, and I still got the same error message saying it couldnt find it. No matter what I do, it just doesnt recognise it. Im sure there is something Im missing.

Any help would be great.

Regards,
Mikey
 
Back
Top