WebRequest problem

  • Thread starter Thread starter jayderk
  • Start date Start date
J

jayderk

I have written an application for a pocket pc that uses this code and it
works perfect.

WebRequest req = WebRequest.Create(http://www.yahoo.com);
WebResponse resp = req.GetResponse();
Stream mystream = resp.GetResponseStream();
string Data = mystream.ToString();
Debug.WriteLine(Data.ToString());

this works perfect on the Pocket CE4.1 device...

I can not however get to work on my desktop, I have checked all the obvious
stuff....

I am missing something. but don't know what!





later,

Jay
 
I have written an application for a pocket pc that uses this code and it
works perfect.

WebRequest req = WebRequest.Create(http://www.yahoo.com);
WebResponse resp = req.GetResponse();
Stream mystream = resp.GetResponseStream();
string Data = mystream.ToString();
Debug.WriteLine(Data.ToString());

this works perfect on the Pocket CE4.1 device...

I can not however get to work on my desktop, I have checked all the obvious
stuff....

I am missing something. but don't know what!

I got:
System.Net.ConnectStream

Maybe you got something wrong with yout PC: proxy, firewal, ect?

kuba f.
 
Back
Top