Prevent HttpContext Current to be null WCF service NET

Prevent HttpContext Current to be null WCF service NET

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

You may also like...

%d bloggers like this: