how to determine hosted server url from within wcf service?

  • Thread starter Thread starter paul korosi
  • Start date Start date
P

paul korosi

Hi, I've got a wcf service that is hosted on my local machine. I need to
determine the hosted url of the service from within the service but cannot
work out how to do it.
HttpContext.Current always returns null, which i suppose might make some
sense. Does anyone know of a way to get the url?

TIA,

paul
 
paul said:
Hi, I've got a wcf service that is hosted on my local machine. I need to
determine the hosted url of the service from within the service but cannot
work out how to do it.
HttpContext.Current always returns null, which i suppose might make some
sense. Does anyone know of a way to get the url?

TIA,

paul

Where did you host your service? A Windows service, IIS or normal
program (console or winform)?
 
Duy Lam said:
Where did you host your service? A Windows service, IIS or normal program
(console or winform)?

sorry - should have said. it's hosted on IIS.

cheers,

paul
 
Back
Top