No Touch Deployment

  • Thread starter Thread starter Jason MacKenzie
  • Start date Start date
J

Jason MacKenzie

Is there a way my application can tell what web server it was launched from?
I want to point to web services on the same server the application was
launched from.

Any help is appreciated,

Jason MacKenzie
 
Hi Jason,
You can use 'AppDomain.CurrentDomain.BaseDirectory' to determine the server
(parse out the server name) and use this information to modify the
'WebClient.Url' value of the WebService.
Terry
 
Terry,

Thanks a million.

Jay

twahl said:
Hi Jason,
You can use 'AppDomain.CurrentDomain.BaseDirectory' to determine the
server
(parse out the server name) and use this information to modify the
'WebClient.Url' value of the WebService.
Terry
 

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

Back
Top