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
 
Back
Top