HttpHandlers and HttpModules
HttpHandler or HttpModule for file upload, large files, progress indi...
Re: Somebody must know the answer, please help: HttpHandler or HttpMo...
View Complete Thread
J B. Podolak
Re: Somebody must know the answer, please help: HttpHandler or HttpModule for file upload, large...
Nov 11, 2002 10:08 PM
J B. Podolak
To micklemj: Increasing the script timeout and execution timeout won't help, it's the aspnet_wp.exe process that thinks it's deadlocked after 180 seconds and "recycles" itself for you (how nice of it!). I have found a partial solution though. As long as ASP.NET is serving some requests, aspnet_wp won't timeout. I have used this solution for uploads that take up to an hour with success. The way to make it work is to spawn a new window from the page before starting the upload. The code in the spawned page just refreshes itself every few seconds until the upload is finished, then it closes itself. However, this does not fix my main problem, which is that the *entire* uploaded file is kept in server memory during the upload. My uploads can be hundreds of megabytes, so that is not feasible. That's why I was asking about anyone who had worked with asynchronous handlers... I thought maybe I could grab every 4000 bytes or so and dump it to a temp file, rather than wait for the entire request to get there. I know that there are 3rd party utilities for this, but that's not an option for me, I have to write the code and no client-side ActiveX controls are allowed (other than what comes with Internet Explorer) Hope this helps...