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

  1. <system.serviceModel>
  2. <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
  3. </system.serviceModel>

No comments:

Post a Comment