开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜