Hi All,
I am using XDocument Load function to read the xml file. I created a test project and use this method, work fine. When I use this function in my project, throw exception "Could not resolve url"
My Code is
XDocument doc = XDocument.Load("http://meet68571338.adobeconnect.com/api/xml?action=common-info");
Exception Details:
System.Net.WebException was caught
Message=The remote name could not be resolved: 'meet68571338.adobeconnect.com'
Source=System
StackTrace:
at System.Net.HttpWebRequest.GetResponse()
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
at System.Xml.Linq.XDocument.Load(String uri)
InnerException:
Please guide me to resolve the problem.