title: Exception thrown: 'HttpRequestException' in System.Private.CoreLib.ni.dll when testing over a Lumia 950XL Device
body: <p>I'm builing an app with facebook auth using Azure, now, when i debug my app on my local database on local machine my app works fine when login into my app.</p>
  
  <p>but as soon as I try to test it on my Lumia 950XL sometimes it login in sucessfully and other time i doesnt login at all and show me this:</p>
  
  <blockquote>
    <p>Step into: Stepping over non-user code
    'Ceneam.Common.Helpers.AuthenticationDelegatingHandler.CloneHttpRequestMessageAsync'
    Step into: Stepping over non-user code
    'Ceneam.Common.Helpers.AuthenticationDelegatingHandler.d__1..ctor'
    Step into: Stepping over non-user code
    'Ceneam.Common.Helpers.AuthenticationDelegatingHandler.&lt;>n__0'   Step
    into: Stepping over non-user code
    'Ceneam.Common.Helpers.LoggingHandler.SendAsync'   Step into: Stepping
    over non-user code
    'Ceneam.Common.Helpers.LoggingHandler.d__2..ctor'<br>
    Request: GET,
    <a href="http://quicopc/Ceneam.Backend/tables/Account" rel="nofollow noreferrer">http://quicopc/Ceneam.Backend/tables/Account</a>?$skip=0&amp;$top=25 Step
    into: Stepping over non-user code
    'Ceneam.Common.Helpers.LoggingHandler.&lt;>n__0'   15:17:54.3412524
    Template10 HamburgerMenu.GotFocus  Windows.UI.Xaml.Controls.Button
    name:HamburgerButton  symbol:Windows.UI.Xaml.Controls.FontIcon<br>
    Exception thrown: 'System.Net.Http.HttpRequestException' in
    System.Private.CoreLib.ni.dll (this list line 4 times in a row)</p>
  </blockquote>
  
  <p>now I had debugged my app to my AuthenticationDelegatingHandler class and this is the code where it steps out:</p>
  
  <pre><code>protected override async Task&lt;HttpResponseMessage&gt; SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
  {
      //Clone the request in case we need to use it.
      var clone = await CloneHttpRequestMessageAsync(request);
  
      //Now do the request
      var response = await base.SendAsync(request, cancellationToken);/*after pressing the next step it steps out and returns me to my login page again*/
  
      if(response.StatusCode == HttpStatusCode.Unauthorized)
      {
          /*The request result in a 401 Unauthorized. We need to do a LoginAsync.
           which will do the Refresh if appropiate, or ask for credentials if not.*/
          var user = await ServiceLocator.Instance.Resolve&lt;ICloudService&gt;().LoginAsync();
  
          /*Now retry the request with the cloned request. The only thing we have
           to do is replace the X-ZUMO-AUTH header with the new auth token.*/
          clone.Headers.Remove("X-ZUMO-AUTH");
          clone.Headers.Add("X-ZUMO-AUTH", user.MobileServiceAuthenticationToken);
          response = await base.SendAsync(clone, cancellationToken);
      }
  
      return response;
  }
  </code></pre>
  
  <p>now I'm not an expert on azure but i cant understand why it only happens in my phone and not in the desktop and the exception doesnt tell me much, and besides strangely as soon as I get at my home It works fine at home it logs in successfully without a problem.
  but here at work doesnt.</p>
  
  <p>I had configured the local server for testing purposes and it works great, its just the login in the problem.</p>