Link to home
Create AccountLog in
Avatar of wael_shehab
wael_shehabFlag for Saudi Arabia

asked on

Timeout In loading large XML file

I am doing task of loading  xml file ( which Exist in Physical Path on my Pc For Example D:/MyXmlDemo/17.xml) to XmlDataDocument, but every time I am getting error:

The operation has timed out

The code is as follows, The url containing the xml feeds , I want to load it into xmlDoc.

XmlDataDocument xmlDoc = new XmlDataDocument();
xmlDoc.Load("D:/MyXmlDemo/17.xml");

Note : the File Size = 80 MB
Please suggest any solution.
ASKER CERTIFIED SOLUTION
Avatar of Dmitry G
Dmitry G
Flag of New Zealand image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
You may be also interested in the following approach but unfortunately I can't tell you much about this:

http://james.newtonking.com/archive/2007/12/11/linq-to-xml-over-large-documents.aspx
Wrong post, sorry