title: WinJS.xhr: Network Error 0x2efd, Could not complete the operation due to error 00002efd
body: <p>I have problem with WinJS.xhr when developing a Windows 8 Metro application in JavaScript.</p>
  
  <pre><code>WinJS.xhr({ url: "http://www.seznam.cz"});
  </code></pre>
  
  <p>When above code is executed, I see in log:</p>
  
  <pre><code>SCRIPT7002: XMLHttpRequest: Network Error 0x2efd, Could not complete
  the operation due to error 00002efd.
  </code></pre>
  
  <p>I have enabled "Internet (Client)" capability in manifest.</p>
  
  <p>Maybe the problem is because I am behind proxy and using VPN, but I can access internet using Google Chrome (I just need to authorize, otherwise HTTP Status 407 - proxy authorization needed).</p>
  
  <p>How can I fix it?</p>
  
  <p><strong>[EDIT]</strong>
  So I found that it is probably related to the VPN I have to use (Cisco VPN Client). When I disable the VPN, even when I am behind the proxy (I use the LAN, with VPN I use WiFi), the request works. Maybe it is only Cisco VPN related. I had to modify registry as it is described here <a href="http://verbalprocessor.com/2012/09/17/windows-8-and-cisco-vpn-client/">http://verbalprocessor.com/2012/09/17/windows-8-and-cisco-vpn-client/</a></p>
  
  <p>Also interesting is that a few Metro apps work (maps) and some do not work (windows store) when I am behind proxy.</p>
  
  <p>Just a notice: I have explored Windows.Networking.Connectivity and in both cases (with/without VPN) I get NetworkConnectivityLevel == "Local Access" (because I am behind the proxy probably).</p>