Answer the question
In order to leave comments, you need to log in
Why does one code work fine in a WPF app, but the same code doesn't run in a Windows Store app?
Hello!
I'm writing a Windows Store app that has a point where a GET request needs to be sent. I wrote the same desktop application using WPF, everything worked fine. And now the same code is not running in the Windows Store app.
Here is the code itself:
WebRequest request = WebRequest.Create(uri);
WebResponse response = await request.GetResponseAsync();
Stream stream = response.GetResponseStream();
var sr = new StreamReader(stream);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question