加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – 提供的URI方案’https’无效;预期’http’.参数名称

发布时间:2020-12-15 22:59:26 所属栏目:asp.Net 来源:网络整理
导读:我没有使用“https”下面的配置.现在,url更改为“https”.但是我得到“提供的URI方案”https“无效;预期的”http’.Parameter名称:通过“调用它时出现错误. system.serviceModelbindings basicHttpBinding binding name="ERightsPortBinding" closeTimeout=
我没有使用“https”下面的配置.现在,url更改为“https”.但是我得到“提供的URI方案”https“无效;预期的”http’.Parameter名称:通过“调用它时出现错误.
<system.serviceModel>
<bindings>
  <basicHttpBinding>
    <binding name="ERightsPortBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
      <security mode="None">
        <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
      </security>          
    </binding>
  </basicHttpBinding>
</bindings>
<client>
  <endpoint address="https://dev.company.com/jws/ws/EService?WSDL" binding="basicHttpBinding" bindingConfiguration="ERightsPortBinding" contract="ERights.ERights" name="ERightsPort" />
</client>

如何解决错误?

解决方法

当您将安全标签的模式更改为运输时,您会得到什么?
<security mode="Transport">

我们使用https服务,这是我们使用的模式 – 在我们的开发环境中,我们使用None.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读