Click here to Skip to main content
15,897,519 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Web Service - HttpContext.Current is null Pin
#realJSOP18-Oct-09 12:24
professional#realJSOP18-Oct-09 12:24 
GeneralRe: Web Service - HttpContext.Current is null Pin
JimmyRopes18-Oct-09 12:33
professionalJimmyRopes18-Oct-09 12:33 
GeneralRe: Web Service - HttpContext.Current is null Pin
Not Active18-Oct-09 13:43
mentorNot Active18-Oct-09 13:43 
GeneralRe: Web Service - HttpContext.Current is null Pin
JimmyRopes18-Oct-09 13:49
professionalJimmyRopes18-Oct-09 13:49 
GeneralRe: Web Service - HttpContext.Current is null Pin
Not Active18-Oct-09 15:07
mentorNot Active18-Oct-09 15:07 
GeneralRe: Web Service - HttpContext.Current is null Pin
JimmyRopes18-Oct-09 15:19
professionalJimmyRopes18-Oct-09 15:19 
General[deleted] Re: Web Service - HttpContext.Current is null Pin
Not Active18-Oct-09 16:29
mentorNot Active18-Oct-09 16:29 
GeneralRe: Web Service - HttpContext.Current is null Pin
#realJSOP18-Oct-09 12:22
professional#realJSOP18-Oct-09 12:22 
JimmyRopes wrote:
I believe you are blurring the lines between an Internet application and a desktop application.


No, I'm not confusing that.

Granted, during development, the web service is hosted on the local machine (which mine is). I full-well expect the IP address to be 127.0.0.1 in this case.

My *problem* is that using HttpContext.Current.blah_blah is evidently not the right way to retrieve the client IP address in a web service. The client in this case is a desktop application that happens to be running on the same box as the web service. I just want the web service to tell me the IP address it thinks the client is at. In the "real world", that IP would probably be a router/firewall that sits between the client machine and the internet.

Now, does it really sound like I'm confused?

.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

GeneralRe: Web Service - HttpContext.Current is null Pin
JimmyRopes18-Oct-09 12:38
professionalJimmyRopes18-Oct-09 12:38 
AnswerRe: Web Service - HttpContext.Current is null Pin
JimmyRopes18-Oct-09 11:45
professionalJimmyRopes18-Oct-09 11:45 
GeneralRe: Web Service - HttpContext.Current is null Pin
#realJSOP18-Oct-09 12:26
professional#realJSOP18-Oct-09 12:26 
GeneralRe: Web Service - HttpContext.Current is null Pin
JimmyRopes18-Oct-09 12:29
professionalJimmyRopes18-Oct-09 12:29 
GeneralRe: Web Service - HttpContext.Current is null Pin
#realJSOP18-Oct-09 23:10
professional#realJSOP18-Oct-09 23:10 
GeneralRe: Web Service - HttpContext.Current is null Pin
JimmyRopes19-Oct-09 0:07
professionalJimmyRopes19-Oct-09 0:07 
Questionadd event to image Pin
helelark12318-Oct-09 0:53
helelark12318-Oct-09 0:53 
AnswerRe: add event to image Pin
Abhijit Jana18-Oct-09 1:08
professionalAbhijit Jana18-Oct-09 1:08 
GeneralRe: add event to image Pin
helelark12318-Oct-09 1:16
helelark12318-Oct-09 1:16 
GeneralRe: add event to image Pin
Abhijit Jana18-Oct-09 1:20
professionalAbhijit Jana18-Oct-09 1:20 
GeneralRe: add event to image Pin
helelark12318-Oct-09 1:40
helelark12318-Oct-09 1:40 
GeneralRe: add event to image Pin
Abhijit Jana18-Oct-09 2:34
professionalAbhijit Jana18-Oct-09 2:34 
GeneralRe: add event to image Pin
helelark12318-Oct-09 3:03
helelark12318-Oct-09 3:03 
GeneralRe: add event to image Pin
yesu prakash18-Oct-09 18:17
yesu prakash18-Oct-09 18:17 
GeneralRe: add event to image Pin
helelark12318-Oct-09 20:06
helelark12318-Oct-09 20:06 
Questioncapture pre post back state Pin
JimmyRopes17-Oct-09 22:58
professionalJimmyRopes17-Oct-09 22:58 
AnswerRe: capture pre post back state Pin
Not Active18-Oct-09 3:19
mentorNot Active18-Oct-09 3:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.