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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -