开发者

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

开发者 https://www.devze.com 2023-02-17 04:34 出处:网络
I\'ve also remembered to include AspNetCompatibilityRequirements( RequirementsMode = AspNetCompatibilityRe开发者_Go百科quirementsMode.Required )] on my service.

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:(

0

精彩评论

暂无评论...
验证码 换一张
取 消