WCF - Using <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> but HttpContext is still null
I've also remembered to include
AspNetCompatibilityRequirements( RequirementsMode = AspNetCompatibilityRe开发者_Go百科quirementsMode.Required )]
on my service.
As far as I can tell these are the only two things that need to be set but nobody on the WCF forums seem to be able to help. I am running in IIS7. Is there something else I could be missing??
Try setting IIS application pool mode to Integrated if it is classic. Make sure it is running .NET 4.0.
Turns out it doesn't work when using Net.Tcp binding:(
精彩评论