提供的URI方案"https"无效;预期的'http'参数名称:通过 [英] The provided URI scheme 'https' is invalid; expected 'http'.Parameter name: via
本文介绍了提供的URI方案"https"无效;预期的'http'参数名称:通过的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在以下配置中使用了不带"https"的配置.现在,网址已更改为"https" .但是我收到提供的URI方案'https'无效;预期为'http'.参数名称:通过" 调用时出错.
I have use below below configuration without "https". Now url changed to "https". But I am getting "The provided URI scheme 'https' is invalid; expected 'http'.Parameter name: via" error while calling it.
<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
标签的模式更改为 Transport
时,您会得到什么?
What do you get when you change your security
tag's mode to Transport
?
<security mode="Transport">
我们使用https服务,这是我们使用的模式-我们在开发环境中对http使用 None
.
We use https services and this is the mode we use -- we use None
for http in our development environments.
这篇关于提供的URI方案"https"无效;预期的'http'参数名称:通过的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文