Reading app.config

H

hau

I'm trying to read my app.config file and return a value from it.

How can I obtain the address from this app.config file?

<configuration>
<system.diagnostics>
stuff..........
</system.diagnostics>
<system.serviceModel>
<client>
<endpoint address="http://000.00.0.000"
binding="basicHttpBinding" bindingConfiguration="test"
contract="xxx.ImportSoap" name="ImportSoap" />
</client>
</system.serviceModel>
</configuration>
 
G

Gilbert Tordeur

Don't forget Google is also a help source. Just look for "dotnet read
app.config" and you will find a lot of answers...
Gilbert
 

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