Reading app.config

  • Thread starter Thread starter hau
  • Start date Start date
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>
 
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
 
Back
Top