config中需要配置
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
另需要在服务类上加上,非服务契约
[AspNetCompatibilityRequirements(RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed)]
config中需要配置
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
另需要在服务类上加上,非服务契约
[AspNetCompatibilityRequirements(RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed)]
转载于:https://www.cnblogs.com/CoreXin/p/4731862.html