On 06/03/2008, Simon Robinson <[EMAIL PROTECTED]> wrote:
> I have a C# dll project which calls a web service.  I need to be able to
> vary the URL used to call the web service *after* building the application
> (so I can deploy it with different deployed instances referring to
> different URLs).  When calling a web service from web or .exe apps, that's
> easy - just make sure the URL behaviour is set to dynamic and then change
> the URL in the app.config or web.config as required.  However that doesn't
> seem to work when the app is a class library dll (I can change the URL in
> the VS Properties window or in the .dll.config, but it has no effect - the
> value is clearly being ignored by the app).

I see you're happy with a programmatic solution, but to answer your
question: The .config file only associates with an exe (except for
web.config), so (from your other response) you just need to put the
settings in a .exe.config for each of the .NET exe and the Foxpro app.

I haven't used FoxPro, but if it doesn't compile its applications, and
while you're debugging it if it is like VB6, you add your settings to
FoxPro.exe.config (just like I need to use VB6.exe.config when
debugging VB6 apps using .NET web services).

Regards,
Mark Hurd, B.Sc.(Ma.)(Hons.)

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to