divin757 8 Light Poster

Hi,

I have a custom httphandler (HttpUploadHandler.ashx) which is used for handling requests from a file uploader. It collects all the files from a client then fires a thread to do some processing on the files. When large amounts of files are added it will throw 'Thread was being aborted' exception.

I have checked around on the internet and the going reason for this is that Response.End, Response.Redirect, or Server.Transfer was used. I have not used any of these methods, so it must be called by the system.

So my question is this, how can I safely start background tasks that are not linked to the current page?

thanks,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.