title: No protocol binding matches the given address for WCF-service
body: <p>I am running a website (ASP.Net 4) using IIS6. I get the following error message when I try to run a svc-service:</p>
  
  <blockquote>
    <p>No protocol binding matches the given address
    '<a href="http://www.holtalen.kommune.no/Templates/eDemokrati/Services/eDemokratiService.svc" rel="nofollow">http://www.holtalen.kommune.no/Templates/eDemokrati/Services/eDemokratiService.svc</a>'`.</p>
    
    <p>Protocol bindings are configured at the Site level in IIS or WAS configuration. Description: An unhandled exception occurred during the
    execution of the current web request. Please review the stack trace
    for more information about the error and where it originated in the
    code.
    Exception Details: System.InvalidOperationException: No protocol binding matches the given address
    '<a href="http://www.holtalen.kommune.no/Templates/eDemokrati/Services/eDemokratiService.svc" rel="nofollow">http://www.holtalen.kommune.no/Templates/eDemokrati/Services/eDemokratiService.svc</a>'.
    Protocol bindings are configured at the Site level in IIS or WAS
    configuration.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location
    of the exception can be identified using the exception stack trace
    below.</p>
    
    <p>Stack Trace:</p>
    
    <p>[InvalidOperationException: No protocol binding matches the given address
    '<a href="http://www.holtalen.kommune.no/Templates/eDemokrati/Services/eDemokratiService.svc" rel="nofollow">http://www.holtalen.kommune.no/Templates/eDemokrati/Services/eDemokratiService.svc</a>'.
    Protocol bindings are configured at the Site level in IIS or WAS
    configuration.]
    [ServiceActivationException: No protocol binding matches the given address
    '<a href="http://www.holtalen.kommune.no/Templates/eDemokrati/Services/eDemokratiService.svc" rel="nofollow">http://www.holtalen.kommune.no/Templates/eDemokrati/Services/eDemokratiService.svc</a>'.
    Protocol bindings are configured at the Site level in IIS or WAS
    configuration.]
    System.Runtime.AsyncResult.End(IAsyncResult result) +679246
    System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult
    result) +190
               System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication
    context, String routeServiceVirtualPath, Boolean flowContext, Boolean
    ensureWFService) +234
    System.ServiceModel.Activation.HttpModule.ProcessRequest(Object
    sender, EventArgs e) +355
               System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    +148
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously</p>
  </blockquote>
  
  <p>I have added the extension .svc as an application mapping for the site.</p>
  
  <p>Parts of Web.config:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;extensions&gt;
        &lt;bindingElementExtensions&gt;
          &lt;add name="udpTransport" type="Microsoft.ServiceModel.Samples.UdpTransportElement, EPiServer.Events" /&gt;
        &lt;/bindingElementExtensions&gt;
      &lt;/extensions&gt;
      &lt;services&gt;
        &lt;!-- Before deployment, you should remove the returnFaults behavior configuration to avoid disclosing information in exception messages --&gt;
        &lt;service name="EPiServer.Events.Remote.EventReplication" behaviorConfiguration="DebugServiceBehaviour"&gt;
          &lt;endpoint name="RemoteEventServiceEndPoint" contract="EPiServer.Events.ServiceModel.IEventReplication" binding="customBinding" bindingConfiguration="RemoteEventsBinding" address="soap.udp://239.255.255.19:5000/RemoteEventService" /&gt;
          &lt;!-- Uncomment this endpoint and the "RemoteEventServiceClientEndPoint" to enable remote events
              &lt;endpoint name="RemoteEventServiceEndPoint"
                      contract="EPiServer.Events.ServiceModel.IEventReplication"
                      binding="customBinding"
                      bindingConfiguration="RemoteEventsBinding"
                      address="soap.udp://239.255.255.19:5000/RemoteEventService" /&gt;--&gt;
        &lt;/service&gt;
  
          &lt;service name="SSP.eDemokrati.Templates.Services.eDemokratiService"  &gt;
                  &lt;!-- Add the following endpoint.  --&gt;
                  &lt;!-- Note: your service must have an http base address to add this endpoint. --&gt;
                  &lt;endpoint contract="SSP.eDemokrati.Templates.Services.eDemokratiService" binding="webHttpBinding"  /&gt;
                  &lt;host&gt;
       &lt;baseAddresses&gt;
       &lt;add baseAddress="http://www.holtalen.kommune.no/" /&gt;
        &lt;!--&lt;add baseAddress="http://172.28.160.23:80/" /&gt;
       --&gt; 
  
       &lt;/baseAddresses&gt;
      &lt;/host&gt;
         &lt;/service&gt;
  
  
  
        &lt;!-- In order to get fault information from the server for debug purposes, add behaviorConfiguration="DebugServiceBehaviour" to the endpoint "RemoteEventServiceEndPoint" --&gt;
      &lt;/services&gt;
  
  
      &lt;client&gt;
        &lt;endpoint name="RemoteEventServiceClientEndPoint" address="soap.udp://239.255.255.19:5000/RemoteEventService" binding="customBinding" bindingConfiguration="RemoteEventsBinding" contract="EPiServer.Events.ServiceModel.IEventReplication" /&gt;
        &lt;!-- Uncomment this endpoint and the "RemoteEventServiceEndPoint" to enable remote events
          &lt;endpoint name="RemoteEventServiceClientEndPoint"
             address="soap.udp://239.255.255.19:5000/RemoteEventService"
             binding="customBinding"
             bindingConfiguration="RemoteEventsBinding"
             contract="EPiServer.Events.ServiceModel.IEventReplication" /&gt;--&gt;
  
      &lt;/client&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="DebugServiceBehaviour"&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;bindings&gt;
        &lt;customBinding&gt;
          &lt;binding name="RemoteEventsBinding"&gt;
            &lt;binaryMessageEncoding /&gt;
            &lt;udpTransport multicast="True" /&gt;
          &lt;/binding&gt;
        &lt;/customBinding&gt;
     &lt;/bindings&gt;
  
          &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="false"&gt;
     &lt;serviceActivations&gt;
      &lt;add relativeAddress="Templates/eDemokrati/services/eDemokratiService.svc" service="SSP.eDemokrati.Templates.Services.eDemokratiService" /&gt;
     &lt;/serviceActivations&gt;
    &lt;/serviceHostingEnvironment&gt;
  
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>What configuration should I add to IIS in order to get this to work?</p>