配置绑定扩展'system.serviceModel /绑定/ basicHttpsBinding'找不到 [英] Configuration binding extension 'system.serviceModel/bindings/basicHttpsBinding' could not be found

查看:3371
本文介绍了配置绑定扩展'system.serviceModel /绑定/ basicHttpsBinding'找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试浏览到我的.svc文件我收到此错误。看来,这不是找到我basicHttpsBinding;这里是我的web.config的那一段:

I am getting this error when I try to navigate to my .svc file. It appears that it's not finding my basicHttpsBinding; here's that section of my web.config:

<system.serviceModel>
<behaviors>
  <serviceBehaviors>
    <behavior>
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
      <serviceDebug includeExceptionDetailInFaults="true"/>
    </behavior>
  </serviceBehaviors>
</behaviors>
<protocolMapping>
  <add binding="basicHttpsBinding" scheme="https"/>
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="false" multipleSiteBindingsEnabled="true"/> 

我试图通过谷歌,但我能找到似乎并不适用于我在这里做什么任何答案搜索。大部分我发现了什么谈到自定义绑定,而我不认为我有什么。我老老实实甚至还没有接近知道什么可能会造成这个错误,所以任何帮助将大大AP preciated。如果您需要了解更多信息,让我知道,我会添加它。

I tried searching through Google but any answers I could find didn't seem to apply to what I'm doing here. Most of what I found talked about custom bindings, of which I don't think I have any. I'm honestly not even close to sure what could be causing this error, so any help would be greatly appreciated. If you need more information let me know and I'll add it.

推荐答案

BasicHttpsBinding 是一个新的绑定在.NET 4.5,因此,你不能在4.0应用程序中使用它。要么你删除protocolMapping或者您使用其他具有约束力,如 basicHttpBinding的的wsHttpBinding

BasicHttpsBinding is a new binding in .NET 4.5, therefore you cannot use it in a 4.0 application. Either you remove the protocolMapping or you use another binding such as basicHttpBinding or wsHttpBinding.

当您在IIS中配置SSL,这应该正常工作。

When you configure SSL in IIS, this should work as well.

这篇关于配置绑定扩展'system.serviceModel /绑定/ basicHttpsBinding'找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆