【发布时间】:2012-04-30 08:31:13
【问题描述】:
我正在尝试通过 https 设置 WCF 服务。但是我不断收到错误消息:“找不到与绑定 BasicHttpBinding 的端点的方案 https 匹配的基地址。注册的基地址方案是 [http]。”
这是我的 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>
关于我做错了什么有什么想法吗?
【问题讨论】:
标签: .net wcf web-services web