Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7783149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:45:19+00:00 2026-06-01T19:45:19+00:00

I have a WCF service that is using https to communicate and json for

  • 0

I have a WCF service that is using https to communicate and json for the response format. I don’t want my methods to be available to anyone so i change the authentication in IIS from anonymous & basic to just basic.

So far, the browser is asking for user and pass but i get the following error :

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

What do i have to change to my endpoint to work with authentication ?

My web.config looks like :

<?xml version="1.0"?>
<configuration>
  <system.web>
    <compilation debug="false" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>
    <bindings>
      <webHttpBinding>
        <binding name="restBinding">
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Basic" proxyCredentialType="Basic" />
          </security>
        </binding>
      </webHttpBinding>
    </bindings>
    <services>
      <service name="ContactLibrarySecure.ContactLibraryService">
        <endpoint address="mex" binding="mexHttpsBinding" bindingConfiguration=""
          name="mex" contract="IMetadataExchange" />
        <endpoint address="rest" behaviorConfiguration="restBehavior"
          binding="webHttpBinding" bindingConfiguration="restBinding"
          name="rest" contract="ContactLibrarySecure.IContact" />
        <host>
          <baseAddresses>
            <add baseAddress="https://192.168.1.31/ContactLibrary2.0HTTPS" />
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <endpointBehaviors>
        <behavior name="restBehavior">
          <webHttp />
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior name="">
          <serviceMetadata httpsGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>

</configuration>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T19:45:21+00:00Added an answer on June 1, 2026 at 7:45 pm
        <?xml version="1.0"?>
    <configuration>
      <system.web>
        <compilation debug="false" targetFramework="4.0" />
      </system.web>
      <system.serviceModel>
        <bindings>
          <basicHttpBinding>
            <binding name="soapBinding" maxBufferSize="2000000000" maxBufferPoolSize="2000000000"
              maxReceivedMessageSize="2000000000">
              <security mode="Transport">
                <transport clientCredentialType="Windows" proxyCredentialType="Basic" />
                <message clientCredentialType="UserName" />
              </security>
            </binding>
          </basicHttpBinding>
          <wsHttpBinding>
            <binding name="mexBinding">
              <security mode="Transport">
                <transport clientCredentialType="Windows" />
                <message clientCredentialType="UserName" />
              </security>
            </binding>
          </wsHttpBinding>
          <webHttpBinding>
            <binding name="restBinding" closeTimeout="00:10:00" sendTimeout="00:10:00"
              maxBufferSize="2000000000" maxBufferPoolSize="2000000000" maxReceivedMessageSize="2000000000">
              <security mode="Transport">
                <transport clientCredentialType="Windows" />
              </security>
            </binding>
          </webHttpBinding>
        </bindings>
        <services>
          <service name="ContactLibrarySecure.ContactLibraryService">
            <endpoint address="mex" binding="wsHttpBinding" bindingConfiguration="mexBinding"
              name="mex" contract="IMetadataExchange" />
            <endpoint address="rest" behaviorConfiguration="restBehavior"
              binding="webHttpBinding" bindingConfiguration="restBinding"
              name="rest" contract="ContactLibrarySecure.IContact" />
            <endpoint address="soap" behaviorConfiguration="soapBehavior"
              binding="basicHttpBinding" bindingConfiguration="soapBinding"
              name="soap" contract="ContactLibrarySecure.IContact" />
            <host>
              <baseAddresses>
                <add baseAddress="https://192.168.1.31/ContactLibrary2.0HTTPS" />
              </baseAddresses>
            </host>
          </service>
        </services>
        <behaviors>
          <endpointBehaviors>
            <behavior name="restBehavior">
              <webHttp />
              <dataContractSerializer maxItemsInObjectGraph="2147483647" />
            </behavior>
            <behavior name="soapBehavior">
              <dataContractSerializer maxItemsInObjectGraph="2147483647" />
            </behavior>
          </endpointBehaviors>
          <serviceBehaviors>
            <behavior name="">
              <serviceMetadata httpsGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
      </system.serviceModel>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
      </system.webServer>
    
    </configuration>
    

    This config file solved my problem. I changed from basic to windows authentication, after i installed windows authentication in iis.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service that is using a custom ServiceAuthorizationManager . The custom
I have a Data Service created using WCF that internally uses nHibernate. This WCF
I have a .NET web service (using asmx...have not upgraded to WCF yet) that
I have a WCF service that I'm using in my Silverlight project. I've followed
I have a WCF service hosted in IIS 7 using HTTPS. When I browse
I have a WCF client and service using HTTPS over the wsHttpBinding. One common
I have a generic proof of concept WCF service that is using forms authentication
I have a WCF service that is using webHttpBinding on an endpoint, and the
i have a WCF web service with basic http bindings. i am using https
I have a RESTful WCF service that I am performing a PUT to using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.