XDOCUMENT.LOAD

Ankit Singh

Total Post:341

Points:2389
Posted by  Ankit Singh
C#
 1097  View(s)
Ratings:
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.

  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: XDocument.Load

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!