摘要:
1.在WCF服务端使用HttpContext.Current为空的解决方案: 1)在服务端WCF的类上加描述[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] 2)在服务端WEBCONFIG的<system.serviceModel>节点里加<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>2.在WCF服务端使用HttpContext. 阅读全文