logo

Previous Thread:   Images disappearing - System exception

10/19/2005 2:12:04 AM    WebRequest not working in Win CE 4.1 without a proxy setting
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