WCF HTTP/1.1 504 Fiddler - Receive Failure

Discussion in 'Site Programming, Development and Design' started by DiChoiDi, Nov 4, 2011.

  1. With my WCF service, I'm able to get it running on my local machine, but once I put it on Winhost for hosting it doesn't work for me anymore. My WCF client application times out trying to call a function from the proxy of the service.

    http://didotnet.w06.Winhost.com/DrawingNetwork/NetworkService.svc

    ---------------------------------------------------------------
    web.config for Service
    ---------------------------------------------------------------
    <?xml version="1.0"?>
    <configuration>
    <system.web>
    <trust level="Full"/>
    <httpRuntime maxRequestLength="16384"/>
    <compilation debug="true" targetFramework="4.0"/>
    <authentication mode="None"/>
    <customErrors mode="Off"/>
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
    </system.web>
    <system.serviceModel>
    <diagnostics wmiProviderEnabled="true" performanceCounters="All">
    <messageLogging logMalformedMessages="true" logMessagesAtServiceLevel="true"
    logMessagesAtTransportLevel="true" />
    </diagnostics>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="false" multipleSiteBindingsEnabled="true"/>
    <bindings>
    <wsDualHttpBinding>
    <binding name="Unsecured" useDefaultWebProxy="true">
    <security mode="None">
    <message clientCredentialType="None" negotiateServiceCredential="false"/>
    </security>
    </binding>
    </wsDualHttpBinding>
    </bindings>
    <services>
    <service behaviorConfiguration="NetworkLayer.NetworkServiceBehavior" name="NetworkLayer.NetworkService">
    <endpoint address="" binding="wsDualHttpBinding" bindingConfiguration="Unsecured" contract="NetworkLayer.INetworkService"/>
    <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="" contract="IMetadataExchange"/>
    </service>
    </services>
    <behaviors>
    <serviceBehaviors>
    <behavior name="NetworkLayer.NetworkServiceBehavior">
    <serviceMetadata httpGetEnabled="true"/>
    <serviceDebug includeExceptionDetailInFaults="false"/>
    </behavior>
    </serviceBehaviors>
    </behaviors>
    </system.serviceModel>
    </configuration>
    ---------------------------------------------------------------
    App.config of my WCF Client
    ---------------------------------------------------------------
    <?xml version="1.0"?>
    <configuration>
    <system.serviceModel>
    <diagnostics wmiProviderEnabled="true" performanceCounters="All">
    <messageLogging logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true"/>
    </diagnostics>
    <bindings>
    <wsDualHttpBinding>
    <binding name="WSDualHttpBinding_INetworkService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true">
    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
    <reliableSession ordered="true" inactivityTimeout="00:10:00"/>
    <security mode="None">
    <message clientCredentialType="Windows" negotiateServiceCredential="true"/>
    </security>
    </binding>
    </wsDualHttpBinding>
    </bindings>
    <client>
    <endpoint address="http://didotnet.w06.Winhost.com/drawingnetwork/NetworkService.svc" binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_INetworkService" contract="NetworkService.INetworkService" name="WSDualHttpBinding_INetworkService"/>
    </client>
    </system.serviceModel>
    <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
    ---------------------------------------------------------------
    Point of failure:
    ---------------------------------------------------------------
    var context = new InstanceContext(new ControlCallback());
    Proxy = new NetworkServiceClient(context);
    Proxy.AddClient("ControlLayer"); <-- Fails here.
     
    Last edited by a moderator: Oct 14, 2015

Share This Page