Debugging with VS2005 dynamic web-reference

B

blekros

Group,

My client-side dynamic web-reference contains strings, which I
substitute with user entries in my installer class. This is
serialized in app.config, which after building becomes,
MyDll.dll.config

For example:

http:// server/directory/MyService/MyService.asmx

My installer class for the project substitutes server and directory
with real values when the .dll is installed. (Yes, it's a class
library). The web-reference becomes:

http://realserver/realdirectory/MyService/MyService.asmx

When I debug the library, (which starts an exe, which loads the dll) ,
I edit the MyDll.dll.config file and change it to a test service.
Since the installer is not run, I must do this manually.

However, it uses whatever default value is in the attribute modifier
for the defaultInstance, NOT what is in the .dll.config file.

How can I get the debug version to read the config file? Will the
production version REALLY read what is in the .config file at run time
or use the compiled default value?

Thanks,

Brad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top