I am trying to set up a WCF service over https. However I keep getting the error: "Could not find a base address that matches scheme https for the endpoint with binding BasicHttpBinding. Registered base address schemes are [http]."
我正在尝试通过https设置WCF服务。但是我一直收到错误:“无法找到与绑定BasicHttpBinding的端点的方案https匹配的基址。注册的基址方案是[http]。”
Here is the content of my web.config file:
这是我的web.config文件的内容:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
...
<behaviors>
<serviceBehaviors>
<behavior name="MyServiceBehavior">
<serviceMetadata httpsGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service name="SoftwareMyService.MyService" behaviorConfiguration="MyServiceBehavior">
<host>
<baseAddresses>
<add baseAddress="https://........./" />
</baseAddresses>
</host>
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="StreamedHttp" contract="SoftwareMyService.IMyService" />
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="StreamedHttp" transferMode="Streamed" maxReceivedMessageSize="2147483647">
<security mode="Transport">
</security>
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>
</configuration>
Any ideas on what I'm doing wrong?
关于我做错的任何想法?
1 个解决方案
#1
1
I would expect that this shuold at least have a MyService.svc value.
我希望这个shuold至少有一个MyService.svc值。
<endpoint address="" binding="basicHttpBinding"
bindingConfiguration="StreamedHttp" contract="SoftwareMyService.IMyService" />
#1
1
I would expect that this shuold at least have a MyService.svc value.
我希望这个shuold至少有一个MyService.svc值。
<endpoint address="" binding="basicHttpBinding"
bindingConfiguration="StreamedHttp" contract="SoftwareMyService.IMyService" />