Remote WCF service hanging

Last post 06-19-2008 8:49 PM by devcenter369. 1 replies.

Sort Posts:

  • Remote WCF service hanging

    05-16-2008, 1:12 PM
    • Loading...
    • jimi2cool
    • Joined on 10-02-2006, 8:33 PM
    • Posts 10

     ok, i have a service that fetches images from a database for me.the service is hosted in IIS and the service config is as follows

     

    <system.serviceModel>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
        <diagnostics performanceCounters="All" wmiProviderEnabled="True">
          <messageLogging logEntireMessage="True"
                          logMalformedMessages="True"
                          logMessagesAtServiceLevel="True"
                          logMessagesAtTransportLevel="True"  />
        </diagnostics>
            <services>
       <service behaviorConfiguration="MySite.ImageService.ImageFetchBehavior"
        name="MySite.ImageService.ImageFetch">
        <endpoint address="http://localhost:8989/imagefetch.svc" binding="basicHttpBinding"
         bindingConfiguration="bigBasicHttpBinding" name="ImageFetchHttpEndPoint"
         contract="MySite.ImageService.ImageFetch">
         <identity>
          <dns value="http://localhost:8989/imagefetch.svc" />
         </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" name="ImageFetchMexBinding"
         contract="IMetadataExchange" />
       </service>
       <service behaviorConfiguration="MySite.ImageService.ImageSearchBehavior"
        name="MySite.ImageService.ImageSearch">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="bigBasicHttpBinding"
         contract="MySite.ImageService.ImageSearch">
         <identity>
          <dns value="localhost" />
         </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
       </service>
       <service behaviorConfiguration="MySite.ImageService.ImageUploadBehavior"
        name="MySite.ImageService.ImageUpload">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="bigBasicHttpBinding"
         contract="MySite.ImageService.ImageUpload">
         <identity>
          <dns value="localhost" />
         </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
       </service>
      </services>
            <behaviors>
       <serviceBehaviors>
        <behavior name="MySite.ImageService.ImageFetchBehavior">
         <serviceMetadata httpGetEnabled="true" />
         <serviceDebug includeExceptionDetailInFaults="true" />
         <serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="true"
          serviceAuthorizationAuditLevel="SuccessOrFailure" messageAuthenticationAuditLevel="SuccessOrFailure" />
        </behavior>
        <behavior name="MySite.ImageService.ImageSearchBehavior">
         <serviceMetadata httpGetEnabled="true" />
         <serviceDebug includeExceptionDetailInFaults="true" />
         <serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="true"
          serviceAuthorizationAuditLevel="SuccessOrFailure" messageAuthenticationAuditLevel="SuccessOrFailure" />
        </behavior>
        <behavior name="MySite.ImageService.ImageUploadBehavior">
         <serviceMetadata httpGetEnabled="true" />
         <serviceDebug includeExceptionDetailInFaults="true" />
         <serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="true"
          serviceAuthorizationAuditLevel="SuccessOrFailure" messageAuthenticationAuditLevel="SuccessOrFailure" />
        </behavior>
       </serviceBehaviors>
      </behaviors>
        <bindings>
          <basicHttpBinding>
            <binding name="bigBasicHttpBinding"
                     closeTimeout="01:00:00"
                     openTimeout="01:00:00"
                      receiveTimeout="01:00:00"
                     sendTimeout="01:00:00"
                     maxReceivedMessageSize="10490000"
                     maxBufferSize="10490000" >
              <readerQuotas maxDepth="10490000"
                            maxStringContentLength="10490000"
                            maxArrayLength="10490000"  />
            </binding>
          </basicHttpBinding>
        </bindings>
        </system.serviceModel>

     

    the service functions just fine on my local machine. However, when i publish the service to a remote machine in the same network and try and browse to the svc file (or add a web refference from a remote client) the page just hangs pretty much indefinately. Any ideas where i may be going wrong?
     

  • Re: Remote WCF service hanging

    06-19-2008, 8:49 PM
    i am also facing the same problem, not able to access my WCF service from some other machine, i am able to access it from the local machine on which the WCF service is running...... HELP needed.........
Page 1 of 1 (2 items)