I have an application that handles files. The files require some extra information for further processing. I'm using this control for file uploading:
- <CuteWebUI:UploadAttachments ID="Uploader1" runat="server"
- MaxFilesLimit="100" InsertButtonID="btnBrowse" ValidateOption-MaxSizeKB="10240"
- Visible="True" onattachmentadded="Uploader1_AttachmentAdded"
- MultipleFilesUpload="False" OnFileValidating="Uploader1_FileValidating"
On the OnAttachmentAdded event I create a new custom object (that contains the file in bytes and the extra information). This new object is added to a a session variable of type List<MyCustomType>. This list most be kept for the later processing.
The problem is that after uploading a few files I get the error "Thread was being aborted", and the session variable List<MyCustomType> is cleared (the files in the Uploader are kept).
Can you please help me?