Click here to Skip to main content
15,896,154 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Embedded media player problem Pin
yesu prakash18-Oct-09 18:14
yesu prakash18-Oct-09 18:14 
Questionloadingbox Pin
Ersan Ercek18-Oct-09 4:58
Ersan Ercek18-Oct-09 4:58 
AnswerRe: loadingbox Pin
Abhijit Jana18-Oct-09 5:00
professionalAbhijit Jana18-Oct-09 5:00 
AnswerRe: loadingbox Pin
mr_muskurahat19-Oct-09 1:00
mr_muskurahat19-Oct-09 1:00 
Questioncalling selectedindexchanged event Pin
Ersan Ercek18-Oct-09 4:31
Ersan Ercek18-Oct-09 4:31 
AnswerRe: calling selectedindexchanged event Pin
Mircea Puiu18-Oct-09 5:15
Mircea Puiu18-Oct-09 5:15 
GeneralRe: calling selectedindexchanged event Pin
yesu prakash18-Oct-09 18:12
yesu prakash18-Oct-09 18:12 
QuestionWeb Service - HttpContext.Current is null Pin
#realJSOP18-Oct-09 3:46
professional#realJSOP18-Oct-09 3:46 
I created a web service with a method in it that returns the client's IP address. If I "view in browser" on the web service, the method works. If I call that method from a desktop application, The method throws an exception because HttpContext.Current is null.

How should I go about retrieving the client's IP address?

Here's the line I'm trying to use:

string clientIP = HttpContext.Current.Request.UserHostAddress;


.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

AnswerRe: Web Service - HttpContext.Current is null Pin
N a v a n e e t h18-Oct-09 4:22
N a v a n e e t h18-Oct-09 4:22 
GeneralRe: Web Service - HttpContext.Current is null Pin
#realJSOP18-Oct-09 8:11
professional#realJSOP18-Oct-09 8:11 
GeneralRe: Web Service - HttpContext.Current is null Pin
Abhijit Jana18-Oct-09 8:33
professionalAbhijit Jana18-Oct-09 8:33 
GeneralRe: Web Service - HttpContext.Current is null Pin
#realJSOP18-Oct-09 23:07
professional#realJSOP18-Oct-09 23:07 
GeneralRe: Web Service - HttpContext.Current is null Pin
N a v a n e e t h18-Oct-09 16:41
N a v a n e e t h18-Oct-09 16:41 
AnswerRe: Web Service - HttpContext.Current is null Pin
Vimalsoft(Pty) Ltd18-Oct-09 4:24
professionalVimalsoft(Pty) Ltd18-Oct-09 4:24 
GeneralRe: Web Service - HttpContext.Current is null Pin
N a v a n e e t h18-Oct-09 5:12
N a v a n e e t h18-Oct-09 5:12 
AnswerRe: Web Service - HttpContext.Current is null Pin
JimmyRopes18-Oct-09 9:12
professionalJimmyRopes18-Oct-09 9:12 
GeneralRe: Web Service - HttpContext.Current is null Pin
Not Active18-Oct-09 10:42
mentorNot Active18-Oct-09 10:42 
GeneralRe: Web Service - HttpContext.Current is null [modified] Pin
JimmyRopes18-Oct-09 11:09
professionalJimmyRopes18-Oct-09 11:09 
GeneralRe: Web Service - HttpContext.Current is null Pin
Abhijit Jana18-Oct-09 11:20
professionalAbhijit Jana18-Oct-09 11:20 
GeneralRe: Web Service - HttpContext.Current is null Pin
JimmyRopes18-Oct-09 11:24
professionalJimmyRopes18-Oct-09 11:24 
GeneralRe: Web Service - HttpContext.Current is null Pin
Abhijit Jana18-Oct-09 11:30
professionalAbhijit Jana18-Oct-09 11:30 
GeneralRe: Web Service - HttpContext.Current is null Pin
JimmyRopes18-Oct-09 11:49
professionalJimmyRopes18-Oct-09 11:49 
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 

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.