摘要:
1. 在hosting WCF的web.config中加入: system.serviceModel serviceHostingEnvironment aspNetCompatibilityEnabled="true"/ /system.serviceModel 2. 在Service的类定义上加上下面Attribute: [AspNetCompatibilityrequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] 阅读全文