none
Stumped by WCF services RRS feed

  • Question

  • Hello,

    I have two WCF services on the same server.  One is on port 8601 and the other on port 8703. 

    I am trying to get to a different server at 172.18.214.1 8705.

    I have the exact same code snippet in both services at 8601 and 8703.  The code snippet at 8601 successfully makes it to the other server.

    But, the code snippet when run on port 8703 fails with a "There was no endpoint listening...".  This was working Friday but now has quit - something has changed but I don't know what.

    I have verified that the code snippets are exactly the same.  And, I have turned off the firewalls.

    Does anyone have any ideas of where I should look?

    Update: Now I can't connect from either service (8601 or 8703).

    I did a netstat -a and found the following:

    TCP   [::]:8705     VDMZDEVWEBSVC01:0      LISTENING

    Could that be my issue?

    Thank you very much!!



    • Edited by Hiline1961 Monday, June 30, 2014 10:49 PM
    Monday, June 30, 2014 10:22 PM

Answers

  • Hi,

    If you can control the service side, then please try to enable the WCF tracing to find some detailed error information.

    The following configuration taken from MSDN can be applied to enable tracing on your WCF service.

    <configuration>
      <system.diagnostics>
        <sources>
          <source name="System.ServiceModel"
                  switchValue="Information, ActivityTracing"
                  propagateActivity="true" >
            <listeners>
                 <add name="xml"/>
            </listeners>
          </source>
          <source name="System.ServiceModel.MessageLogging">
            <listeners>
                <add name="xml"/>
            </listeners>
          </source>
          <source name="myUserTraceSource"
                  switchValue="Information, ActivityTracing">
            <listeners>
                <add name="xml"/>
            </listeners>
          </source>
        </sources>
        <sharedListeners>
            <add name="xml"
                 type="System.Diagnostics.XmlWriterTraceListener"
                 initializeData="Error.svclog" />
        </sharedListeners>
      </system.diagnostics>
    </configuration>
    

    For the port 8705, it seems that it is used by some other process. A port can be used for only one process at same time.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, July 1, 2014 2:52 AM
    Moderator