Dll, windows dorm, configuration file, web service

I

Iwan Petrow

Hi,

I want to "discover" web services dynamicly. My main application is
windows forms and the form which use the web service is in a dll. But
when I compile the dll application it doesn't create the
application.config file.

What could I do to crete this file and to determine the url of the web
service in this case?
 
O

Ollie Riches

Inside the VS.Net IDE with the solution\project open:

right click on the library project and select 'Add' then 'Add New Item' then
select 'Application Configuration File' (scroll down to the bottom)

This will have added an app.config file for the class library, you can now
change the 'URL Behavior' property of the web service to be 'dynamic' and it
will add an entry to the app.config - this will allow you to change the web
service url at runtime.

--
HTH

Ollie Riches
http://www.phoneanalyser.net

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a programmer
helping programmers.
 
I

Iwan Petrow

Thanks

But my project is a dll. And when I compile it there is not config file.
 

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