While in a function of my web service that was called from another
application (not a web page), I get the an error when calling the function
"Context.Request.UserHostAddress()":
Unhandled Exception: System.InvalidOperationException: HttpContext is not
available. This class can only be used in the context of an ASP.NET request.
at System.Web.Services.WebService.get_Context()
at .....
I want to get the IP address from the client calling the web service. Why
is the Context not available? (I also noticed the Application_Start and
Session_Start events are not firing. While I don't need them, that may be a
clue to the problem).
Thanks in advance.