Hello everyone..I'm trying to access the methods of a WCF service from a pocket pc emulator..I added a Web Reference to the service and tried to access the method like this

WebReferenceService1.Service1 client = new WebReferenceService1.Service1();
 MessageBox.Show(client.GetData(10,true));

..but everytime i call the method..i get System.Net.WebException error saying "Unable to connect to remote server"..the webservice is up and running..I can access it from the browser or the console application where I add the service using Add Reference..Could anyone tell me where I am going wrong?? Any help would be appreciated.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.