Abacus IT
asked on
Streamreader Timing out
Hello Everyone,
I have a streamreader that is called to read a response back from an FTP Web Request. I need to keep the reader open the whole time I am processing some files I am downloading from the FTP site to a local directory. Because of the size of the files, I am able to pull 3 of them and process them, but before the 4th file processes, I get an error stating that:
The underlying connection was closed: An unexpected error occurred on a receive.
Digging into the error message in the locals window shows me the streamreader object threw an exception of type System.ObjecDisposedExcept ion.
This being said, the reader is timing out before I am finished with the files. Is there a way around this?
I have a streamreader that is called to read a response back from an FTP Web Request. I need to keep the reader open the whole time I am processing some files I am downloading from the FTP site to a local directory. Because of the size of the files, I am able to pull 3 of them and process them, but before the 4th file processes, I get an error stating that:
The underlying connection was closed: An unexpected error occurred on a receive.
Digging into the error message in the locals window shows me the streamreader object threw an exception of type System.ObjecDisposedExcept
This being said, the reader is timing out before I am finished with the files. Is there a way around this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
can you just check anywhere you have put values in seconds instead of MILLI-SECONDS?
ASKER
Please view new post for this question shortly.
ASKER
Open in new window