Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I've wcf service and it is working locally fine but when i access from another pc then
error showing "There was no endpoint listening at http://xx.xx.xxx.xx:7080/Exchange that could accept the message".
service config below.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.serviceModel>
    <diagnostics>
      <endToEndTracing propagateActivity="true" activityTracing="true"
        messageFlowTracing="true" />
    </diagnostics>
    <bindings>
      <basicHttpBinding>
        <binding name="TransportSecurity" closeTimeout="00:10:00" openTimeout="00:10:00"
          sendTimeout="00:10:00">
          <security mode="Transport">
            <transport clientCredentialType="None" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="MyBehave" name="BPRDataExchange_Service.Exchange">
        <endpoint address="Exchange" binding="basicHttpBinding" name="ExchangeHttpBasic"
          contract="BPRDataExchange_Service.IExchange">
          <identity>
            <dns value="xx.xx.xxx.xxx" />
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" name="MetaBanding"
          contract="IMetadataExchange" />
        <host>
          <baseAddresses>
            <add baseAddress="http://xx.xx.xxx.xxx:7080/" />
          </baseAddresses>
          <timeouts closeTimeout="00:10:10" openTimeout="00:10:00" />
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="MyBehave">
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
  </startup>
</configuration>


Please tell how to solve this issue.

What I have tried:

host is static(public) IP.
and port in firewall is enabled.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900