---
title: "System.ServiceModel.CommunicationException to consume WCF Rest Service from Windows Phone 8"  
description: "System.ServiceModel.CommunicationException to consume WCF Rest Service from Windows Phone 8"  
author: "Anonymous User"  
published: 2015-05-01  
updated: 2015-05-01  
canonical: https://www.mindstick.com/forum/23169/system-servicemodel-communicationexception-to-consume-wcf-rest-service-from-windows-phone-8  
category: "windows phone"  
tags: ["windows phone", "wcf data services", "windows phone 8"]  
reading_time: 2 minutes  

---

# System.ServiceModel.CommunicationException to consume WCF Rest Service from Windows Phone 8

When i try to [connect](https://www.mindstick.com/articles/12810/how-to-connect-tablet-to-external-monitor-or-flat-screen-tv-using-computer-adapters) to wcf [service](https://www.mindstick.com/articles/105963/online-thesis-writing-service-for-college-kids-with-disabilities) from [windows](https://www.mindstick.com/articles/311752/how-to-install-and-use-the-google-wifi-software-on-a-windows-or-mac-computer) phone 8 (vs 2013 pro 64 bit) an [exception](https://www.mindstick.com/articles/1824/objective-c-exception-handling) 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](https://www.mindstick.com/forum/160484/error-failed-to-launch-debug-adapter-additional-information-may-be-available-in-the-output-window): 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](https://answers.mindstick.com/qa/97003/define-static-ip-and-dynamic-ip) (not DHCP). 3. Emulator displays IP(Adapter-2)- 169.254.143.163. 4. Status of vEthernet ([Internal](https://www.mindstick.com/interview/773/describe-the-accessibility-modifier-protected-internal) [Ethernet Port](https://answers.mindstick.com/qa/49992/if-i-connect-from-a-thunderbolt-dock-via-the-docks-ethernet-port-to-a-managed-switch-does-my-computers-direct-ethernet-port-stay-out-of-the-switch) Windows Phone Emulator Internal Switch) is- [Unidentified network](https://answers.mindstick.com/qa/94976/how-do-i-fix-the-problem-unidentified-network-for-wlan-on-windows-10). 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.\

## Replies

### Reply by Anonymous User

Don't know much about the problem but 169.254.x.x is the IP which is assigned by Windows as a fall-back when you have configured DHCP but no DHCP server can be reached. Is your Emulator [network](https://www.mindstick.com/articles/13122/an-introduction-to-network-cables) configured correctly?


---

Original Source: https://www.mindstick.com/forum/23169/system-servicemodel-communicationexception-to-consume-wcf-rest-service-from-windows-phone-8

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
