title: Passing a local html page with querystring in windows phone
body: <p>I'm trying to get pdf.js to work locally on a windows phone app written in Xamarin but I can't understand why if I pass a url without any querystring it works:</p>
  
  <pre><code>url = "Assets/pdfjs/web/viewer.html"
  Uri uri = new Uri(url, UriKind.Relative);
  PdfWebViewer.Source = uri;
  </code></pre>
  
  <p>The above displays the pdf.js viewer correctly but with no pdf file of course but if I change the url to:</p>
  
  <pre><code>url = "Assets/pdfjs/web/viewer.html?file=test.pdf"
  Uri uri = new Uri(url, UriKind.Relative);
  PdfWebViewer.Source = uri;
  </code></pre>
  
  <p>I just get a page not found. Note the javascript is enabled.</p>
  
  <p>I've added the various web browser events to see if I could spot anything else, and when I call the url without a querystring, it calls the <code>Navigating</code> event followed by the <code>Navigated</code> event but as soon as I specify a querystring, it triggers the <code>Navigating</code> followed by <code>NavigationFailed</code> event but I can't see the error as the exception returned in <code>e.exception</code> is null.</p>
  
  <p>Am I missing something?? Is this not allowed?</p>
  
  <p>Thanks.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>It may not be a problem with Xamarin as I've just tried the same thing in a WP8.1 using the <code>WebBrowser</code> control and I get exactly the same behaviour.</p>
  
  <pre><code>Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
  
      WebBrowser.IsScriptEnabled = True
      WebBrowser.Source = New Uri("/Html/Viewer.Html?file=1", UriKind.Relative)
  
  End Sub
  </code></pre>
  
  <p>My Viewer.html is the most basic page you could have:</p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;
      Test
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Get rid of the query string and the web browser will display Test. Any ideas??</p>