Showing posts with label HttpContext. Show all posts
Showing posts with label HttpContext. Show all posts

Thursday, 19 July 2012

Prevent HttpContext.Current to be null in WCF service in .net

add following code in web.config file…..
<configuration>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled=”true” />
</system.serviceModel>
</configuration>