Thursday, December 1, 2016

HttpContext.Current is null in Wcf Service

Issue:

HttpContext.Current is null in wcf service

Solution:

Set the aspNetCompatibilityEnabled is true in the Web.Config file

<system.serviceModel>
     <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
</system.serviceModel>

No comments:

Post a Comment