forum

Home / DeveloperSection / Forums / System.ServiceModel.CommunicationException to consume WCF Rest Service from Windows Phone 8

System.ServiceModel.CommunicationException to consume WCF Rest Service from Windows Phone 8

Anonymous User 2966 01-May-2015
 When i try to connect to wcf service from windows phone 8 (vs 2013 pro 64 bit) an exception arises such as-

An exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.ni.dll but was not handled in user code. Additional information: The remote server returned an error: NotFound.

My Code-
private void GetData()  
{  
ADARA.WsBankUltimusCoreService.InterfaceToFetchServiceClient clientForTesting = new       ADARA.WsBankUltimusCoreService.InterfaceToFetchServiceClient();       clientForTesting.EnquiryAccountSummuryCompleted += new           EventHandler<WsBankUltimusCoreService.EnquiryAccountSummuryCompletedEventArgs>      (TestCallback); clientForTesting.EnquiryAccountSummuryAsync("0000217392", "1",               "mobilebanking", "QmkAc", "json");  
}  
private void TestCallback(object sender,       WsBankUltimusCoreService.EnquiryAccountSummuryCompletedEventArgs e)  
{  
var test = e.Result;  
}

Additional information- 1. Emulator can't access internet. 2. Network type- Static IP (not DHCP). 3. Emulator displays IP(Adapter-2)- 169.254.143.163. 4. Status of vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch) is- Unidentified network. 5. IP of WCF Service- 192.168.20.233 6. IP of Client - 192.168.20.234 used tools- Service- VS 2012 Client- VS 2013 pro + Win phone 8.0

Both Client and Server exist in a same LAN, so wcf service is remote(not local) from client.


I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By