Streamreader Timeout Issue

M

Matt Bailey

Hi,

I have an ASPX page with a C# backend in which I use a StreamReader to
input a file so that I can parse through it. While the code I have
works, I get a 404 error when I try to use an input file larger that 10
mb, which will be a common occurance for my app. Is there a way I can
increase the time on the timeout, or is there an alternative to the
streamreader that I can use?

Any help is greatly appreciated.

Thanks
 
C

Cowboy \(Gregory A. Beamer\)

Yes, by extending timeout in config. But, if all you are doing is backend
parsing, set the parser up as a windows service and fire it off asynch.
Then, timeout will not matter.

It really depends on whether or not you need to display the parse.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think Outside the Box!
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,218
Latest member
JolieDenha

Latest Threads

Top