title: 404 Errors for WCF Service Hosted In IIS 7
body: <p>I keep getting 404 errors for a WCF service hosted in IIS. The service is a duplex service. I am able to access the .svc in a web browser.  However, when the client attempts to log in, it times out with a 404 Not Found error.
  A snippet of my web.config looks like this:</p>
  
  <pre><code>&lt;system.webServer&gt;
          &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
    &lt;/system.webServer&gt;
    &lt;system.web&gt;
      &lt;customErrors mode="Off"/&gt;
      &lt;trust level="Full"/&gt;
    &lt;/system.web&gt;
   &lt;system.serviceModel&gt;
    &lt;behaviors&gt;
     &lt;serviceBehaviors&gt;
      &lt;behavior name=""&gt;
       &lt;serviceMetadata httpGetEnabled="true" /&gt;
       &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
      &lt;/behavior&gt;
     &lt;/serviceBehaviors&gt;
    &lt;/behaviors&gt;
     &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="false" aspNetCompatibilityEnabled="false"&gt;
       &lt;baseAddressPrefixFilters&gt;
         &lt;add prefix="http://seeinstacksproductions.com/"/&gt;
       &lt;/baseAddressPrefixFilters&gt;
     &lt;/serviceHostingEnvironment&gt;
     &lt;bindings&gt;
       &lt;wsDualHttpBinding&gt;
         &lt;binding name="dualHttp" receiveTimeout="00:30:00" maxReceivedMessageSize="1048576" sendTimeout="00:01:00"&gt;
           &lt;readerQuotas maxStringContentLength="99999999" maxArrayLength="9999999" maxBytesPerRead="999999"/&gt;
           &lt;security mode="None"/&gt;
         &lt;/binding&gt;
       &lt;/wsDualHttpBinding&gt;
     &lt;/bindings&gt;
     &lt;services&gt;
       &lt;service name="OLII.Apps.Services.Automation.AutomatorService.WCFAutomatorService"&gt;
         &lt;host&gt;
           &lt;baseAddresses&gt;
             &lt;add baseAddress="http://seeinstacksproductions.com/"/&gt;
           &lt;/baseAddresses&gt;
         &lt;/host&gt;
         &lt;endpoint address="Automator.svc" bindingConfiguration="dualHttp" binding="wsDualHttpBinding" contract="OLII.Apps.Services.ProxyClients.AutomatorServiceProxyClient.IWCFAutomatorService"/&gt;
       &lt;/service&gt;
     &lt;/services&gt;
   &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>I have fiddlered the request that my application makes and it looks like this:</p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"&gt;
    &lt;s:Header&gt;
      &lt;a:Action s:mustUnderstand="1"&gt;http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence&lt;/a:Action&gt;
      &lt;a:MessageID&gt;urn:uuid:f15d936e-e893-46cd-ae6a-43186cda91ef&lt;/a:MessageID&gt;
      &lt;a:ReplyTo&gt;
        &lt;a:Address&gt;http://my-server/Temporary_Listen_Addresses/595b57ae-f2a0-4522-b636-1075e326c689/3a866e3c-c707-4fe8-b211-208affa1092a&lt;/a:Address&gt;
        &lt;a:ReferenceParameters&gt;
          &lt;ChannelInstance xmlns="http://schemas.microsoft.com/ws/2005/02/duplex"&gt;6&lt;/ChannelInstance&gt;
        &lt;/a:ReferenceParameters&gt;
      &lt;/a:ReplyTo&gt;
      &lt;a:To s:mustUnderstand="1"&gt;http://seeinstacksproductions.com/Automator.svc&lt;/a:To&gt;
    &lt;/s:Header&gt;
    &lt;s:Body&gt;
      &lt;CreateSequence xmlns="http://schemas.xmlsoap.org/ws/2005/02/rm"&gt;
        &lt;AcksTo&gt;
          &lt;a:Address&gt;http://my-server/Temporary_Listen_Addresses/595b57ae-f2a0-4522-b636-1075e326c689/3a866e3c-c707-4fe8-b211-208affa1092a&lt;/a:Address&gt;
          &lt;a:ReferenceParameters&gt;
            &lt;ChannelInstance xmlns="http://schemas.microsoft.com/ws/2005/02/duplex"&gt;6&lt;/ChannelInstance&gt;
          &lt;/a:ReferenceParameters&gt;
        &lt;/AcksTo&gt;
        &lt;Offer&gt;
          &lt;Identifier&gt;urn:uuid:a2d993bb-1694-4373-a5fa-48f5ec01185b&lt;/Identifier&gt;
        &lt;/Offer&gt;
      &lt;/CreateSequence&gt;
    &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>
  
  <p>Thanks</p>