c# - How to set programmatically baseAddress for both client and server? -


currently baseaddress fixed in app.config file both service , client

app.config both service , client

<host>       <baseaddresses>         <add baseaddress="http://localhost:8080/service" />       </baseaddresses>     </host> 

is possible programmatically? like

baseaddress = txtbaseaddress.text; 

or any?

you cannot update base address using servicehost readonly. have pass set of baseaddress servicehost constructor or have use configuration file.

please refer following links

  1. msdn

  2. msdn blog


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -