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

ASP.NET

 
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 
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 
I understand that you are calling from a Desktop application and it worked just fine for me. Can you provide additional informations to reproduce this? I believe you are using a SOAP web service. Here is what I did and which worked for me.

In Web service:
[WebMethod]
public string TestHttpContext()
{
    if (HttpContext.Current != null)
        return "Context is not null";
    else
        return "Context is null!";
}
In Desktop application:
ServiceReference1.Service1SoapClient s = new ServiceReference1.Service1SoapClient();
string str = s.TestHttpContext();
Console.WriteLine(str); // Prints Context is not null
I also tried moving the HttpContext check to other class library as part of reproducing. But everything worked as expected.

If you can provide more information, I will try to reproduce.

Smile | :)

Best wishes,
Navaneeth

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

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.