小编Jos*_*nko的帖子

使用传输的WCF总是在我不希望使用HTTPS时尝试使用HTTPS

我一直收到以下错误"无法找到与绑定WebHttpBinding的端点匹配方案https的基址.注册的基址方案是[http]." 这开始是因为我通过添加以下内容进入基本传输身份验

  <webHttpBinding>
    <binding name="secureBasic">
      <security mode="Transport">
        <transport clientCredentialType="Basic" />
      </security>
    </binding>
  </webHttpBinding>
Run Code Online (Sandbox Code Playgroud)

谷歌搜索后,常见的修复似乎是以下代码,但我没有成功:

<baseAddressPrefixFilters>
  <add prefix="http://mywebsiteurl"/>
</baseAddressPrefixFilters>
Run Code Online (Sandbox Code Playgroud)

但是,没有任何作用.我想要的是在非https连接上使用基本的http身份验证.我没有配置什么,默认情况下它出现WCF想要强制HTTPS连接.有人碰到这个吗?

https wcf credentials transport

1
推荐指数
1
解决办法
703
查看次数

标签 统计

credentials ×1

https ×1

transport ×1

wcf ×1