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 6851003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:11:39+00:00 2026-05-27T01:11:39+00:00

I am getting the following error when trying to access a WCF service. Could

  • 0

I am getting the following error when trying to access a WCF service.

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

Here’s my config

<?xml version="1.0"?>
    <configuration>
      <system.web>
        <compilation debug="true"/>
        <customErrors mode="Off"/>
      </system.web>

      <system.serviceModel>
        <bindings>
          <basicHttpBinding>
            <binding name="DefaultHttpBinding"
                     maxBufferSize="655360"
                     maxReceivedMessageSize="655360">
            </binding>
          </basicHttpBinding>
        </bindings>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true">
          <baseAddressPrefixFilters>
            <add prefix="http://MySite.com/MyVirtualDir/"/>
          </baseAddressPrefixFilters>
        </serviceHostingEnvironment>
        <services>
          <service behaviorConfiguration="DefaultBehavior"
                   name="MyWcfService">
            <endpoint address="http://MySite.com/MyVirtualDir/MyWcfService.svc"
                      binding="basicHttpBinding"
                      bindingConfiguration="DefaultHttpBinding"
                      contract="MyNamespace.IMyWcfService" />
            <endpoint address="mex"
                      binding="mexHttpBinding"
                      contract="IMetadataExchange" />
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name="DefaultBehavior">
              <serviceMetadata httpGetEnabled="true"
                               policyVersion="Policy15"/>
              <serviceDebug httpHelpPageEnabled="true"
                            includeExceptionDetailInFaults="true"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
      </system.serviceModel>
    </configuration>

And here’s my .scv file

<%@ ServiceHost Language="C#" Debug="true" Service="MyWcfService" Factory="MyWcfServiceHostFactory"%>

To give some more background that may or may not be helpful

  • The service works fine in our DEV environment. This error is only
    occurring in our TEST and PROD environments. The only discernable
    difference between environments that i am aware of is that TEST and PROD are using a
    load balancer.
  • The service is hosted in IIS 5.1 on all environments
  • The service has been written in dot.net 3.5 and is activated by a
    WebServiceHost factory
  • I have not specified https anywhere in my config file
  • SSL has NOT been enabled in IIS on any of the environments. Anonymous access has been enabled (security implementation will come later on).

Any help would be much appreciated as this is a complete show stopper for our project. I have throurghly searched the web for solutions to this problem, but nothing seems to relate to my my particular set up.

  • 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-05-27T01:11:40+00:00Added an answer on May 27, 2026 at 1:11 am

    So for me, the fix for this issue was to remove the mex binding as per some of your suggestions. I also removed the servicemetadata section from the DefaultBehavior in config.

    This fix only hides the original issue as I still have no idea why the mex binding was registered as https. But I can now consume my web service, even if i can’t retrieve the metadata from it – that’s not a problem in my case.

    Here’s the corrected config

    <?xml version="1.0"?>
        <configuration>
            <system.web>
                <compilation debug="true"/>
                <customErrors mode="Off"/>
            </system.web>
    
            <system.serviceModel>
                <bindings>
                    <basicHttpBinding>
                        <binding name="DefaultHttpBinding"
                                 maxBufferSize="655360"
                                 maxReceivedMessageSize="655360">
                        </binding>
                    </basicHttpBinding>
                </bindings>
                <serviceHostingEnvironment aspNetCompatibilityEnabled="true">
                    <baseAddressPrefixFilters>
                        <add prefix="http://MySite.com/MyVirtualDir/"/>
                    </baseAddressPrefixFilters>
                </serviceHostingEnvironment>
                <services>
                    <service behaviorConfiguration="DefaultBehavior"
                             name="MyWcfService">
                        <endpoint address="http://MySite.com/MyVirtualDir/MyWcfService.svc"
                                  binding="basicHttpBinding"
                                  bindingConfiguration="DefaultHttpBinding"
                                  contract="MyNamespace.IMyWcfService" />
                    </service>
                </services>
                <behaviors>
                    <serviceBehaviors>
                        <behavior name="DefaultBehavior">
                            <serviceDebug httpHelpPageEnabled="true"
                                          includeExceptionDetailInFaults="true"/>
                        </behavior>
                    </serviceBehaviors>
                </behaviors>
            </system.serviceModel>
        </configuration>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting the following authentication error when trying to access Twitter using my
I am getting the following error message when trying to access devices connected by
Getting the following error when trying to start a session: Warning: session_start() [function.session-start]: Node
I'm getting the following error when trying to run a JSP. I'm using Tomcat
I'm getting the following error when trying to build my app using Team Foundation
I am getting the following error when trying to install Visual Studio 2005 on
I'm getting the following error when trying to setup SQL Server 2005 DB Mirroring
I'm getting the following error when trying to convert HL7v3 to HL7v2 The message
I am getting the following error when trying to run reports. any thoughts or
I'm getting the following error when trying to write a string to a file

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.