HTTPContext is always null in my WCF calls, is it obsolete or am I doing something wrong?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The regular HTTPContext is no longer used with WCF. You want the instance context.
See this link for more details
http://www.danrigsby.com/blog/index.php/2008/05/23/understanding-instancecontext-in-wcf/
You can also enable compatibility mode so your WCF service acts like an old webservice, but you are better off using the InstanceContext