Home > DeveloperSection > Forums > XDocument.Load
Ankit Singh

Total Post:341

Posted on    August-28-2014 1:06 AM


 1 Reply(s)
 1043  View(s)
Rate this:

I am loading XML from a url using XDocument.Load. It seems to work locally but fails in server. I have IIS 7, ASP.NET MVC 2 application. What specific protocol the above function uses? What IIS settings I need to check? Any help will be appreciated.

Sumit Kesarwani

Total Post:378

Posted on    August-28-2014 2:01 AM

Hi Ankit, 
try this:

Dim doc As XDocument

doc = XDocument.Load("http://dl.dropbox.com/u/8842115/sample.xml")

For Each node In doc.Descendants("first")

  Console.WriteLine(CType(node.Element("no"), String))


Don't want to miss updates? Please click the below button!

Follow MindStick