标签:
config中需要配置
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
另需要在服务类上加上,非服务契约
[AspNetCompatibilityRequirements(RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed)]
Wcf托管在IIS中,HttpContext.Current为空
标签:
原文地址:http://www.cnblogs.com/CoreXin/p/4731862.html