user834675
user834675

Reputation: 31

Hosting WCF ON IIS7

Here is my config file of my W CF web service:

<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>

I am getting the following error : Could not find a base address that matches scheme HTTP for the endpoint with binding WS2007HttpBinding. Registered base address schemes are [HTTPS]. - I have this service configured to HTTPS : 443, Any changes to my web config???

Here is my binding section:

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

Upvotes: 0

Views: 374

Answers (1)

Tim
Tim

Reputation: 28530

Try setting the following in the security element for mode:

<security mode="transport">

Upvotes: 1

Related Questions