Hi!
BACKGROUND: On a particular CE device running CE .Net 4.1 the CF classes
WebRequest/HttpWebRequest did not work unless a proxy was set in Internet
Explorer. It worked in the CE emulators and on another CE device running CE
..Net 4.2.
I scanned this forum for a solution to the problem. Finally I solved it
myself. The solution was to set the proxy member of the
WebRequest/HttpWebRequest object to an empty proxy object. Apparantly there
is a bug somewhere in the Compact Framework. It fails to create this empty
proxy object if no proxy has been set in IE. At least on some configurations
....
System.Net.WebRequest wr =
System.Net.WebRequest.Create("http://www.google.se");
wr.Proxy = GlobalProxySelection.GetEmptyWebProxy();
/rob
|