Note that there are some explanatory texts on larger screens.

plurals
  1. POException using WebClient calling HTTPS URLs
    primarykey
    data
    text
    <p>For about 3 months I have a public app which is using the WebClient to call some HTTPS API. Until about 3 weeks ago everything worked fine, but suddenly the app stopped working and all the WebClient calls throw "The remote server returned an error: NotFound." exception.</p> <p>I didn't update my app in any way, the API didn't change, I didn't notice any update for the Windows Phone. I mention that my app is targeting the Windows Phone OS 7.1 and I also tried to use the HttpWebRequest class - the result is the same. My code looks something like this:</p> <pre><code>private void tile_Tap(object sender, System.Windows.Input.GestureEventArgs e) { WebClient wc = new WebClient(); wc.OpenReadCompleted += new OpenReadCompletedEventHandler(wc_OpenReadCompleted); wc.OpenReadAsync(new Uri("https://www.google.com")); } void wc_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e) { try { StreamReader s = new StreamReader(e.Result); string r = s.ReadToEnd(); MessageBox.Show(r); } catch (Exception ex) { MessageBox.Show(ex.Message); } } </code></pre> <p>This code will fail every time it's called with the above mentioned exception. If I would try to get the "http://www.google.com" or any other HTTP URL the code will work fine. However, I need to use HTTPS as I need to send also credentials with the WebClient calls.</p> <p>I found on the Internet that other people ran into such issues last year, but this problem was supposed to be fixed with Mango update.</p> <p>Does anybody know how can I fix this issue or any workaround as I ran out of ideas.</p> <p>Thank you in advance!</p> <p>Regards, Andrei</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload