Home > DeveloperSection > Forums > XDocument.Load
Ankit Singh

Total Post:341

Points:2389
Posted on    August-28-2014 1:06 AM

 C#
Ratings:


 1 Reply(s)
 777  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

Points:2694
Supported
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))

Next


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

Follow MindStick