title: Windows Phone 8 Error with WCF - The remote server returned an error: NotFound
body: <p>I'm not quite sure where to start!! This problem has been driving me crazy!</p>
  
  <p>I'm trying to develop an app for <code>Windows Phone 8</code> using <code>WCF</code> and while it use to work alright and I do say alright as every so often I was getting same communication error I'm getting now, it would eventually come back when I'd stop my network adapters and restart them, but I'd have to do this a few times.</p>
  
  <p>Something happened, I still don't know what, but my emulator stop working altogether and it would just hang and I would get various errors. I uninstalled sdk 8, hyper-v a couple of times and I still was getting the error. I then uninstall the lot once again and deleted all hyper-v folder, config, etc... and while I'm not sure how I fixed it, it started to work when I swapped from <code>Emulator WVGA 512MB</code> to <code>Emulator 720P</code>. I then swapped back and somehow it started to work again... Doesn't make sense! I know!</p>
  
  <p>Anyway, since my emulator is back up, I just haven't been able to get my app to communicate with my wcf service running from my desktop. I keep getting the following error:</p>
  
  <pre><code>{System.Net.WebException: The remote server returned an error: NotFound. ---&gt; System.Net.WebException: The remote server returned an error: NotFound.
      at System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
      at System.Net.Browser.ClientHttpWebRequest.&lt;&gt;c__DisplayClasse.&lt;EndGetResponse&gt;b__d(Object sendState)
      at System.Net.Browser.AsyncHelper.&lt;&gt;c__DisplayClass1.&lt;BeginOnUI&gt;b__0(Object sendState)
      --- End of inner exception stack trace ---
      at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
      at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
      at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)}
  </code></pre>
  
  <p>So researched the error "The remote server returned an error: NotFound" and found numerous articles and pretty much tried everything that has been suggested, but still no luck!!</p>
  
  <p>This is one specific article from Microsoft:  <a href="http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj684580%28v=vs.105%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj684580%28v=vs.105%29.aspx</a></p>
  
  <p>and while I haven't tried the IIS solution as I'm only starting to develop my wcf service, I've tried the IIS Express and nothing!! As I said earlier on this use to work!</p>
  
  <p>The thing that drives me mad is that:</p>
  
  <ol>
  <li><p>I can access the .svc or via Http Activation in my web browser</p></li>
  <li><p>I can access my router's website in the emulator</p></li>
  <li><p>I can access the internet in the emulator</p></li>
  </ol>
  
  <p>So it's definitely able to access and communicate with other devices but it just won't access my wcf service.</p>
  
  <p>In another article I found (Don't have the link but will look for it later), it suggested to add a second binding in the <code>applicationhost.config</code> located in <code>%userprofile%\Documents\IISExpress\config\</code> and when I did that I got an error which basically told me I wasn't allow to have 2 bindings unless I <code>multipleSiteBindingsEnabled</code> to true which I did and it solved that problem, but even after introducing the second binding using my full ip address instead of localhost and changing my service to use the .svc with the full ip address, again still no changes... Same error.</p>
  
  <p>I don't believe I'm getting any errors as I've got a break point right at the beginning of my method and it doesn't get to execute any of the relevant code so it's fair (I think) to assume that's it not even getting there! I just don't understand why it use to work and now all of sudden it just stopped! Obviously related to my emulator giving me grief to begin with but still no resolution!!!</p>
  
  <p>Has anyone got any suggestions? I'm at a complete stand still and have no idea where to go next!!! Extremely frustrating!</p>