C# .NET - unable to connect to remote server - Asked By abinav shankar on 11-Apr-13 11:04 AM

Hi
 
I have tried creating a webservice as follows but ended up getting the exception 
unable to connect to remote server please check my code and tell me where I went wrong
string url = "https://meet66961131.adobeconnect.com/api/xml?action=common-info";
  
    HttpWebRequest r = (HttpWebRequest)WebRequest.Create(url);
    r.Method = "Get";
    HttpWebResponse res = (HttpWebResponse)r.GetResponse();
    Stream sr = res.GetResponseStream();
    StreamReader sre = new StreamReader(sr);
  
    string s = sre.ReadToEnd();
    Response.Write(s);