[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 164
  • Last Modified:

Hosting WCF service on IIS6 with SSL enabled

I ran my WCF service on the server without SSL enabled and now I moved it to one with SSL enabled and I am getting the following error:

Could not find a base address that matches scheme http for the endpoint with binding BasicHttpBinding. Registered base address schemes are [https].

Open in new window


Below are my settings:

<bindings>
      <basicHttpBinding>
        <binding name="basicHTTP">
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows">
            </transport>
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="basicBehavior" name="ProjectName.MyService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHTTP" contract="ProjectName.IMyService"/>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="basicBehavior">
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>

Open in new window

0
YZlat
Asked:
YZlat
1 Solution
 
Dan McFaddenSystems EngineerCommented:
I would try changing the following element attribute...

From this:
<security mode="TransportCredentialOnly">

To this:
<security mode="Transport">

MSDN warns that "TransportCredentialOnly" should only be used if the security mode is being protected by IPSec type security.

Reference Link:  https://msdn.microsoft.com/en-us/library/ms731347(v=vs.110).aspx

Dan
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now