Click here to Skip to main content
16,011,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

C#
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);
Posted
Comments
Richard C Bishop 11-Apr-13 11:05am    
It is probably a permissions issue. The error message says you cannot connect to the server.

1 solution

Check for your network connectivity followed by your access credentials to access the above URL.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900