app.config problems

Mikey

Newcomer
Joined
Oct 18, 2004
Messages
2
I've 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. I've 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 couldn't find it. No matter what I do, it just doesn't recognise it. I'm sure there is something I'm missing.

Any help would be great.

Regards,
Mikey
 
Back
Top