C
cathywigzell
I have a small ClickOnce application which communicates with the server
it loaded from. When I created the ClickOnce app, I added a Web
Reference to a .asmx file on the server. The app then uses this
reference to make calls to the server. That all works nicely.
However, at deployment, every server will have a unique name
(obviously). Yet my ClickOnce app will still have its hard-coded web
reference.
How can I change the web reference dynamically? The ClickOnce app must
know the server location (to check for updates) - how can I get hold of
this and then use it to make calls back to the same server? Or, is
there some other way of setting the Web Reference appropriately?
Cathy
it loaded from. When I created the ClickOnce app, I added a Web
Reference to a .asmx file on the server. The app then uses this
reference to make calls to the server. That all works nicely.
However, at deployment, every server will have a unique name
(obviously). Yet my ClickOnce app will still have its hard-coded web
reference.
How can I change the web reference dynamically? The ClickOnce app must
know the server location (to check for updates) - how can I get hold of
this and then use it to make calls back to the same server? Or, is
there some other way of setting the Web Reference appropriately?
Cathy