0

I created a test WCFServiceLibrary project leaving the example code created by VS20212, then i created a ConsoleApplication in the same solution and added a web reference to the service.

In my ConsoleApplication i write this:

       var ns = new ServiceReference1.Service1();
       Console.WriteLine( ns.GetData( 100 ) );

I press F5 and everything seems fine.

Now i keep my WcfTestClient (the server hosting my service when launching from visual studio) running and create a new CompactFramework 2.0 ConsoleApplication project from VS2008.

I add a web reference as before, i compile and distribute my app on my test device I try to execute the same code you see above but i get this error:

"Unable to connect to the remote server" inner exception {"No connection could be made because the target machine actively refused it"}

Dows WcfTestClient have some limitation that do not allow me to connect from outside localhost? How can i solve this problem?

1
  • Looks like you have a connection problem (firewall, wrong IP setup, ...?). You may test your Compact Framework exe on the same computer where you tested with VS2012. The Compact Framework exe files can be run on desktop PC too as long no WinCE only reference is in there.
    – josef
    Nov 26, 2014 at 4:31

1 Answer 1

0

I had to change 'localhost' to my actual server ip in my CompactFramework project's app.config since i was remotely debugging an application deployed on a real device :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.