Mr_E
Mr_E

Reputation: 709

WCF - Using <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> but HttpContext is still null

I've also remembered to include AspNetCompatibilityRequirements( RequirementsMode = AspNetCompatibilityRequirementsMode.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??

Upvotes: 1

Views: 716

Answers (2)

Mr_E
Mr_E

Reputation: 709

Turns out it doesn't work when using Net.Tcp binding:(

Upvotes: 0

Aliostad
Aliostad

Reputation: 81700

Try setting IIS application pool mode to Integrated if it is classic. Make sure it is running .NET 4.0.

Upvotes: 1

Related Questions