Note that there are some explanatory texts on larger screens.

plurals
  1. POXML Download works in emulator but not on phone
    primarykey
    data
    text
    <p>I am downloading an XML file from a site I created and it works fine on the emulator; however, it doesn't work at all on the phone. It comes back with a web exception error and an IO error...and the error property from the HttpsCompleted event says error the remote server returned an error. File not Found. BUT this works on my emulator.</p> <pre><code> protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { base.OnNavigatedTo(e); WebClient wc = new WebClient(); wc.DownloadStringCompleted += HttpsCompleted; wc.DownloadStringAsync(new Uri("http://.../SessionInfo.xml")); } private void HttpsCompleted(object sender, DownloadStringCompletedEventArgs e) { XDocument doc = null; string results = null; if (e.Error == null) { XDocument xdoc = XDocument.Parse(e.Result, LoadOptions.None); List&lt;XElement&gt; xelem = xdoc.Root.Elements() as List&lt;XElement&gt;; results = e.Result; var sessions = from x in xdoc.Descendants("Session") select new { ID = x.Descendants("ID").First().Value, TITLE = x.Descendants("Title").First().Value, TIME = x.Descendants("Time").First().Value, DESCRIPTION = x.Descendants("Description").First().Value }; foreach (var wd in sessions) { sessionsList.Add(new Session(wd.ID, wd.TITLE, wd.TIME, wd.DESCRIPTION)); Debug.WriteLine("Session ID is {0}, Title is {1}, Time is {2}", wd.ID, wd.TITLE, wd.TIME); } } SessionInfoList.ItemsSource = sessionsList; </code></pre> <p>XML Looks like:</p> <pre><code>&lt;request&gt;&lt;Session&gt;&lt;ID&gt;1234-1234-1234-1234&lt;/ID&gt;&lt;Title&gt;Session Title&lt;/Title&gt;&lt;Time&gt;10:00AM-11:30AM&lt;/Time&gt;&lt;Description&gt;Some description.&lt;/Description&gt;&lt;/Session&gt;&lt;/request&gt; </code></pre>
    singulars
    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.
 

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