无法激活服务,因为它需要 ASP.NET 兼容性。没有未此应用程序启用 ASP.NET 兼容性。请在 web.config 中启用 ASP.NET 兼容性,或将 AspNetCompatibilityRequirementsAttribute.AspNetCompatibilityRequirementsMode 属性设置为 Required 以外的值。

在web.config中添加 aspNetCompatibilityEnabled="true"属性即可,如下:

<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />

相关文章:

  • 2021-06-09
  • 2021-12-20
  • 2021-12-23
  • 2021-11-01
  • 2021-10-09
  • 2021-04-03
  • 2021-04-10
猜你喜欢
  • 2022-12-23
  • 2022-01-03
  • 2021-09-12
  • 2021-12-08
  • 2022-12-23
相关资源
相似解决方案