XmlReader Timeout

  • Thread starter Thread starter paulroskilly
  • Start date Start date
P

paulroskilly

Hi,

Im trying to find out how to increase the timeout when doing this :

XmlReader x = XmlReader.Create("<some url>");


It seems to run for about 1min 45sec then timeout, cant see anywhere
how to increase this.

The url is valid, if I browse to it in a browser it does return a xml
document after about 11 mins.


Thanks for any help.

Paul
 
Hi,
Im trying to find out how to increase the timeout when doing this :

XmlReader x = XmlReader.Create("<some url>");

It seems to run for about 1min 45sec then timeout, cant see anywhere
how to increase this.

The url is valid, if I browse to it in a browser it does return a xml
document after about 11 mins.

Thanks for any help.

Paul

I don't know if it's possible to change the XmlReader timeout, but
maybe you can do something different:
Use WebRequest to get the xml (this does have a Timeout property) and
feed XmlReader this xml after you have received it.
A responsetime of 11 mins seems quite long however ...

Hans Kesting
 
Back
Top