error "No protocol binding matches the given address ..."

I have 2 WCF serivces hosted in IIS server.

Here is web.config

<?xml version="1.0"?>
    <compilation debug="true" targetFramework="4.0" />
        <binding name="HttpBinding" />
      <service name="BShop.Services.BubensService">
        <endpoint address="http://localhost:9001/BubensService" binding="basicHttpBinding"
          bindingConfiguration="HttpBinding" name="" contract="BShop.Services.IBubensService" />
      <service name="BShop.Services.OrdersService">
        <endpoint address="http://localhost:9001/OrdersService" binding="basicHttpBinding"
          bindingConfiguration="HttpBinding" contract="BShop.Services.IOrdersService" />
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="false" />
    <modules runAllManagedModulesForAllRequests="true"/>

When I try to run it I got

No protocol binding matches the given address 'http://localhost:9001/BubensService'. Protocol bindings are configured at the Site level in IIS or WAS configuration.

What I missed in config?


When you host your WCF services in IIS, your address defined in the service endpoints is not the one you need to use.

      // this is **NOT** the address you can use to call your service! 

Rather, the web server, its port (usually 80) and the virtual directory plus the SVC file determine your service address. So you service addresses here would be:


What you can do is define relative addresses, e.g.:

<service name="BShop.Services.BubensService">
   <endpoint name="" 
             binding="basicHttpBinding" bindingConfiguration="HttpBinding"  
             contract="BShop.Services.IBubensService" />

Then this service would be callable at :


Just for the benefit of people searching. I came across this problem. To fix it I reviewed the web.config using marc_s 's answer then did the following as I still had problems:

  1. Delete Virtual Directory.
  2. Went to project properties - > Web Panel -> Selected 'Use Local IIS Web Server' with project url of http://{localhost}/{myservice} (obviously without the braces) and re-created the virtual directory.
  3. Changed the App Pool to .NET 4 with integrated pipeline mode. The app pool change seemed to fix it.

Need Your Help

AlertDialog cannot be shown from ListActivity within ActivityGroup

android listactivity android-alertdialog activitygroup

I am trying to show an AlertDialog when an item in a ListActivity is clicked. My app displays the ListActivity under a tab of a TabActivity, and the AlertDialog shows up no problem. The ListActivity (

When do Request.Params and Request.Form differ?

c# request

I recently encountered a problem where a value was null if accessed with Request.Form but fine if retrieved with Request.Params. What are the differences between these methods that could cause this?