在IIS7上托管WCF

时间:2011-07-27 20:36:20

标签: wcf iis-7

这是我的W CF网络服务的配置文件:

<services>
  <service behavior Configuration="METADATASERVICEEXTENSION" name="namespace.MYwebServiceclass">
    <endpoint address="" behaviorConfiguration="" binding="ws2007HttpBinding"
      binding Configuration="xxx" name="xxx" contract="IMyWebService">
      <identity>
        <dns value="" />
        <certificateReference yyyyyy="xxxxxx" find Value=""
          ISCHAINincluded="false" />
      </identity>
    </endpoint>
    <endpoint address="mex" binding="mexHttpBinding" binding Configuration=""
      name="Metadata Exchange" contract="IMetadataExchange" />
  </service>
</services>

我收到以下错误:无法找到与绑定WS2007HttpBinding的端点的方案HTTP匹配的基址。注册的基地址方案是[HTTPS]。 - 我将此服务配置为HTTPS:443,对我的网络配置的任何更改???

这是我的装订部分:

<bindings>
  <ws2007HttpBinding>
    <binding name="xxxxx">
      <security mode="None">
        <transport clientCredentialType="None" />
        <message clientCredentialType="None" negotiateServiceCredential="false"
          establishSecurityContext="false" />
      </security>
    </binding>
  </ws2007HttpBinding>
</bindings>

1 个答案:

答案 0 :(得分:1)

尝试在模式的安全元素中设置以下内容:

<security mode="transport">
相关问题