There was no endpoint listening at http://localhost:49481/Marketing.svc that could accept the message

Posted by duckmike on Stack Overflow See other posts from Stack Overflow or by duckmike
Published on 2012-08-28T15:37:07Z Indexed on 2012/08/28 15:38 UTC
Read the original article Hit count: 193

Filed under:

I have a Marketing service running locally through port 49481 and through IIS on port 65000. Either way when I try to debug into that service, I get an error message -

{"There was no endpoint listening at http:/localhost:49481/Marketing.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."}

My inner exception is - {"The remote server returned an error: (404) Not Found."}

I can open that service address, http:/localhost:49481/Marketing.svc, through a browser and I get a message that it's running ok.

My config file is set up like -

    <endpoint address="http://localhost:49481/Marketing.svc"
        binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IMarketing"
        contract="SunriseMarketing.IMarketing" name="BasicHttpBinding_IMarketing" />

What am I missing?

© Stack Overflow or respective owner

Related posts about wcf