Yes it is possible. If you edit web.config
:
<system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> </system.serviceModel>
and add AspNetCompatiblityRequirements
, HttpContext.Current
should be available.
Check again, maybe you put the attribute in the wrong place (interface instead of class?).
source share