dynamic web service url in dll (VS 2005)

G

Guest

I have created a dll in vs2005, this dll has a webservice call. I set the
url to dyna,ic and vs2005 added the code for the settings and added an
app.config for the url. I created a web project and consumed the dll. Now,
where in the web.config do I place the dynamic url settings for the dll?
 
G

Guest

You should not have your .dll reliant upon a .config file, .config files are
for applications.

In your .dll, the object that requires the URL should expose a method for
passing the URL in, whether it is a function, or a property is moot.

Then, in your web.config file you can place your URL in the <appsettings>

<configuration>
<appSettings>
<add key="URL1" value="http://greyskin.co.uk" />
<add key="URL2" value="http://www.greyskin.co.uk" />
<appSettings>
<configuration>

look in the help files for some help on how to read these values, there are
objects there ready for you to use :blush:))
 

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

Top