try { WebClient reportClient = new WebClient(); reportClient.Credentials = new NetworkCredential("jusankar", "jusankar123"); string reportUri = "http://xyz.com:4511/LIService.svc/GetReport"; reportClient.DownloadStringCompleted +=new DownloadStringCompletedEventHandler(reportClient_DownloadStringCompleted); reportClient.DownloadStringAsync(new Uri(reportUri)); } catch (Exception exp) { MessageBox.Show("I am in problem"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)