Friday, April 29, 2011

HTTPContext.Current always been NULL

Hi,

Am just calling wcf service from my asp.net app

 

XmlDocument webConfig = new XmlDocument

();

webConfig.Load(

HttpContext.Current.Server.MapPath(@"~\web.config"));

Current is always becoming Null.

I also declared on my top of the service as below:

[

 

AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowe 

 

Source: http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/8ee88c92-5e8a-4c66-ace7-887eb500e1cb

chicago river architecture tour service oriented architecture for dummies architecture scholarships best architecture colleges chicago architecture

No comments:

Post a Comment