WCF项目问题2-无法激活服务,因为它需要 ASP.NET 兼容性。没有未此应用程序启用 ASP.NET 兼容性。请在 web.config 中启用 ASP.NET 兼容性,或将 AspNetCompatibilityRequirementsAttribute.AspNetCompatibilityRequirementsMode 属性设置为 Required 以外的值。
2017-04-10 10:05
1256 查看
无法激活服务,因为它需要 ASP.NET 兼容性。没有未此应用程序启用 ASP.NET 兼容性。请在 web.config 中启用 ASP.NET 兼容性,或将 AspNetCompatibilityRequirementsAttribute.AspNetCompatibilityRequirementsMode 属性设置为 Required 以外的值。
在web.config中添加 aspNetCompatibilityEnabled="true"属性即可,如下:
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
相关文章推荐
- 无法激活服务,因为它不支持 ASP.NET 兼容性。已为此应用程序启用了 ASP.NET 兼容性。请在 web.config 中关闭 ASP.NET 兼容性模式或将 AspNetCompatibili
- WCF 无法激活服务,因为它不支持 ASP.NET 兼容性。已为此应用程序启用了 ASP.NET 兼容性
- WCF 无法激活服务,因为它不支持 ASP.NET 兼容性。已为此应用程序启用了 ASP.NET 兼容性
- WCF 无法激活服务,因为它不支持 ASP.NET 兼容性。已为此应用程序启用了 ASP.NET 兼容性
- WCF 无法激活服务,由于它不支持 ASP.NET 兼容性。已为此应用程序启用了 ASP.NET 兼容性
- 无法激活服务,WCF设置ASP.NET 兼容性
- WCF开发错误处理记录(无法激活服务,因为它不支持 ASP.NET 兼容性)
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- 无法激活服务,WCF设置ASP.NET 兼容性【转】
- WCF 无法激活服务,因为它不支持 ASP.NET 兼容性
- WCF发布由于不支持asp.net兼容性而导致服务无法激活启用
- WCF发布由于不支持asp.net兼容性而导致服务无法激活启用
- 无法激活服务,因为它不支持 ASP.NET 兼容性
- 无法激活服务,因为它不支持 ASP.NET 兼容性
- 无法激活服务,因为它不支持 ASP.NET 兼容性
- Asp.Net 调试错误:无法在web服务器上启动调试.调试失败,因为没有启用集成windows身份任证
- 无法激活服务,因为它不支持 ASP.NET 兼容性
- 无法激活服务,因为它不支持 ASP.NET 兼容性
- .NET 4.0 WCF WebConfig aspNetCompatibilityEnabled 属性
- 开发错误处理记录(无法激活服务,因为它不支持 ASP.NET 兼容性)