WCF service 404 Not Found errors

Discussion in 'General troubleshooting' started by kayhustle, Apr 12, 2011.

  1. I just signed up for a hosting account and copied my web site over and I am getting 404 errors when trying to log into my deployed service. The service works fine when I run it locally. The service is a duplex service. I've copied all files exactly from my web site to the ftp site. I am able to access the .svc in a web browser: http://seeinstacksproductions.com/Automator.svc
    A snippet of my web.config looks like this:
    Code:
    	<system.webServer>
    		<modules runAllManagedModulesForAllRequests="true"/>
      </system.webServer>
      <system.web>
        <customErrors mode="Off"/>
        <trust level="Full"/>
      </system.web>
     <system.serviceModel>
      <behaviors>
       <serviceBehaviors>
        <behavior name="">
         <serviceMetadata httpGetEnabled="true" />
         <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
       </serviceBehaviors>
      </behaviors>
       <serviceHostingEnvironment multipleSiteBindingsEnabled="false" aspNetCompatibilityEnabled="false">
         <baseAddressPrefixFilters>
           <add prefix="http://seeinstacksproductions.com/"/>
         </baseAddressPrefixFilters>
       </serviceHostingEnvironment>
       <bindings>
         <wsDualHttpBinding>
           <binding name="dualHttp" receiveTimeout="00:30:00" maxReceivedMessageSize="1048576" sendTimeout="00:01:00">
             <readerQuotas maxStringContentLength="99999999" maxArrayLength="9999999" maxBytesPerRead="999999"/>
             <security mode="None"/>
           </binding>
         </wsDualHttpBinding>
       </bindings>
       <services>
         <service name="OLII.Apps.Services.Automation.AutomatorService.WCFAutomatorService">
           <host>
             <baseAddresses>
               <add baseAddress="http://seeinstacksproductions.com/"/>
             </baseAddresses>
           </host>
           <endpoint address="Automator.svc" bindingConfiguration="dualHttp" binding="wsDualHttpBinding" contract="OLII.Apps.Services.ProxyClients.AutomatorServiceProxyClient.IWCFAutomatorService"/>
         </service>
       </services>
     </system.serviceModel>
    I have fiddlered the request that my application makes and it looks like this:

    Code:
    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
      <s:Header>
        <a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence</a:Action>
        <a:MessageID>urn:uuid:f15d936e-e893-46cd-ae6a-43186cda91ef</a:MessageID>
        <a:ReplyTo>
          <a:Address>http://my-server/Temporary_Listen_Addresses/595b57ae-f2a0-4522-b636-1075e326c689/3a866e3c-c707-4fe8-b211-208affa1092a</a:Address>
          <a:ReferenceParameters>
            <ChannelInstance xmlns="http://schemas.microsoft.com/ws/2005/02/duplex">6</ChannelInstance>
          </a:ReferenceParameters>
        </a:ReplyTo>
        <a:To s:mustUnderstand="1">http://seeinstacksproductions.com/Automator.svc</a:To>
      </s:Header>
      <s:Body>
        <CreateSequence xmlns="http://schemas.xmlsoap.org/ws/2005/02/rm">
          <AcksTo>
            <a:Address>http://my-server/Temporary_Listen_Addresses/595b57ae-f2a0-4522-b636-1075e326c689/3a866e3c-c707-4fe8-b211-208affa1092a</a:Address>
            <a:ReferenceParameters>
              <ChannelInstance xmlns="http://schemas.microsoft.com/ws/2005/02/duplex">6</ChannelInstance>
            </a:ReferenceParameters>
          </AcksTo>
          <Offer>
            <Identifier>urn:uuid:a2d993bb-1694-4373-a5fa-48f5ec01185b</Identifier>
          </Offer>
        </CreateSequence>
      </s:Body>
    </s:Envelope>
    Thanks
     
  2. Ray

    Ray

    Try setting the multipleSiteBindingsEnabled from "false" to "true".
     
  3. Tried that, but still the same 404 error.
     
  4. Ray

    Ray

    Do you have a URL where we can replicate that error on our end?
     
  5. Ray

    Ray

    What URL can I use to get the 404 error message?
     
  6. Thats the url that I use. However I get it when I am connecting via my proxy client. It doesn't happen when loaded in the browser.
     
  7. Ray

    Ray

    Sounds like your proxy client is dropping something. May want to check the configuration on it.
     

Share This Page