private UpdatePackage GetUpdateRequest() { //See if an update is available. WebClient wc = new WebClient(); try { wc.Proxy = new WebProxy("proxy.ecwi.cysca", 3128); System.Diagnostics.EventLog.WriteEntry(this.ServiceName, "Using Proxy " + wc.Proxy.GetProxy(new Uri(UPDATE_URL)).ToString()); byte[] updateBuffer = wc.DownloadData(UPDATE_URL); return(UpdatePackage.FromData(updateBuffer)); } catch (Exception e) { System.Diagnostics.EventLog.WriteEntry(this.ServiceName, "Checking for download failed. Detail=" + e.ToString()); return(null); } }