none
EndpointNotFoundException was unhandled by user code RRS feed

  • Question

  • Hi,

    I have a WCF service hosted on IIS, When I try to consume in the same machine it is working fine. But when I try to consume it from different machine, I am getting EndpointNotFoundException was unhandled by user code Error.

    There was no endpoint listening at http://mysystem.com/MyOneWorldService/MyOneWorldServiceHost.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

    But my end points are in web.config as like this

    <system.serviceModel>
        <behaviors>
          <serviceBehaviors>
            <behavior name="MyServiceTypeBehaviors">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="false" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <services>
          <service name="MyOneWorldService.MyOneWorldService"
                 behaviorConfiguration="MyServiceTypeBehaviors">
            <endpoint address="" binding="wsHttpBinding"
                 contract="MyOneWorldService.IMyOneWorldService"/>
            <endpoint contract="IMetadataExchange"
               binding="mexHttpBinding" address="mex"/>
          </service>
        </services>
      </system.serviceModel>

    Please help me with your inputs. Thanks in advance.

     

    Monday, November 25, 2013 10:01 PM

Answers