Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3844076
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:01:57+00:00 2026-05-19T16:01:57+00:00

I have been trying to follow this article on communicating with a WCF service

  • 0

I have been trying to follow this article on communicating with a WCF service from a mobile device (using compact framework 3.5). I have the service running on the desktop, and it tells me that it’s running as:

http://localhost:1414/MyService.svc

I can see this in my client, but when I try to access it, I get this error:

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

So I did:

InnerException: {"No connection could be made because the target machine actively refused it"}

I am running from the emulator, which the article states did not work – I therefore suspect that I have encountered the same issue. So my question is, does anyone know why this issue may occur?

EDIT:

Just to clarify, this works fine when deployed to the device. It’s just the emulator that has the problem.

EDIT:

Thanks to @Shiraz Bhaiji I have made some progress with this now, but am now getting the error returned:

CFFaultException

This seems to be the only error information I can get, and it’s caused by the call:

MyServiceServiceClient client = new MyServiceServiceClient(binding, endpoint);    
returnString = client.MyFunc1();

I have changed the endpoint to reference my I.P. address directly as follows (the WCF service is running on my PC at the minute):

Binding binding = MyServiceServiceClient.CreateDefaultBinding();
string remoteAddress = MyServiceServiceClient.EndpointAddress.Uri.ToString();
EndpointAddress endpoint = new EndpointAddress("http://1.1.1.1/MyService/MyService.svc");
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T16:01:58+00:00Added an answer on May 19, 2026 at 4:01 pm

    Check Eric Schneider’s answer on this link: http://social.msdn.microsoft.com/Forums/en/netfxcompact/thread/b5be4c83-40ca-423b-9068-8614779fed5f

    Connect to the server using the IP address.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to follow this example (download the source code from a
I have been trying to follow the guidelines in this Microsoft article to authenticate
I have been trying to follow this example for compiling vtk in MATLAB using
I have been trying to follow this example from propel to configure a custom
I have been trying to follow the instructions in the answer to this question
I've been trying to follow this tutorial for deploying a WCF sample to IIS
I have been trying to follow some WCF Data Services examples and have the
This is a follow-up to my previous query . I have been trying some
I have been trying to follow the example in this post . Since I
I have been trying to follow this tutorial: http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/ . It is to create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.