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

    Question

  • Hi,
    I tried to pass client credential for wshttp as basic and depolyed over https(IIS). But i am getting error like

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

    here are the configuration details


    system.serviceModel>
        <services>
          <service name="CustomerServiceLibrarySSL.CustomerService"
                   behaviorConfiguration="ServiceBehavior">
            <!-- Service Endpoints -->
            <endpoint  binding="wsHttpBinding"
                      contract="CustomerServiceLibrarySSL.ICustomerService">
              <!--
                  Upon deployment, the following identity element should be removed or replaced to reflect the
                  identity under which the deployed service runs.  If removed, WCF will infer an appropriate identity
                  automatically.
              -->
             
              <identity>
                <dns value="localhost"/>
              </identity>
            </endpoint>
           
           
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name="ServiceBehavior">
              <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
              <serviceMetadata httpGetEnabled="true"/>
              <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
              <serviceDebug includeExceptionDetailInFaults="true"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <bindings>
          <wsHttpBinding>
            <binding name ="WSHttpWithDomain">
              <security mode="Transport">
                <transport clientCredentialType="Basic" />
              </security>
            </binding>
          </wsHttpBinding>
        </bindings>
      </system.serviceModel>
    Tuesday, November 10, 2009 3:41 AM

Answers

  • This is working fine after i have changed my configuration file. i forgot to include binding configuration and changed mexHttpBinding to mexHttpsBinds and changed httpGetEnabled = false.


    • Marked as answer by vellaimuthu Tuesday, November 10, 2009 3:58 AM
    Tuesday, November 10, 2009 3:58 AM

All replies

  • Hi,

    You have not mention the Address attribute in the EndPoint tag

     <endpoint address=""  binding="wsHttpBinding"
                      contract="CustomerServiceLibrarySSL.ICustomerService" >

    Add the address attribute as shown below


    saravanakumar http://wcftutorial.net/
    Tuesday, November 10, 2009 3:51 AM
  • This is working fine after i have changed my configuration file. i forgot to include binding configuration and changed mexHttpBinding to mexHttpsBinds and changed httpGetEnabled = false.


    • Marked as answer by vellaimuthu Tuesday, November 10, 2009 3:58 AM
    Tuesday, November 10, 2009 3:58 AM