Advertise with us


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.

Last updated:8/28/2014 2:01:47 AM

1 Answers

Sumit Kesarwani
Sumit Kesarwani

Hi Ankit, 

try this:

Dim doc As XDocument

doc = XDocument.Load("")

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

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