WCF的配置是位于system.serviceModel配置节点下。你会看到3个子节点:behaviors, serviceHostingEnvironment和serivces。其中的serviceHostingEnvironment: 跟ASP.Net运行的WCF服务的默认配置是让两者互不干扰 例如,ASP.NET runtime 不参与WCF请求的处理. WCF服务也不能使用ASP.NET Session和Cookie这样的功能. 而配置将aspNetCompatibilityEnabled 设为true, 在这种设置下WCF请求就会加到ASP.Net 的请求管道里了,参看WCF服务中操作FormsAuthentication的Cookie

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2021-09-28
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案