This is a migrated thread and some comments may be shown as answers.

RadUpload 2.4.1.0 and DFS Folder : ObjectDisposedException - Cannot access a closed file

2 Answers 105 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Samwise
Top achievements
Rank 1
Samwise asked on 26 Dec 2008, 08:40 PM
Hello all,

We have a web site that use the Telerik component RadUpload version 2.4.1.0 to upload files with size up to 2 Gb into a DFS folder (underneath is 2 Windows 2003 file servers for redundancy).

Several times a day, we see this error below in the logs :

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 12/24/2008 3:31:45 PM
Event time (UTC): 12/24/2008 2:31:45 PM
Event ID: a5cf066cd14e40d89c2692f2406742d6
Event sequence: 1389855
Event occurrence: 5
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1238888888/Root-1-128888888888008000
    Trust level: Full
    Application Virtual Path: /
    Application Path: X:\XXXXXX\FileTransfer\
    Machine name: XXXXXXX
 
Process information:
    Process ID: 2164
    Process name: w3wp.exe
    Account name: XXX\YYY 
 
Exception information:
    Exception type: ObjectDisposedException
    Exception message: Cannot access a closed file.
 
Request information:
    Request URL: https://xxxxxxx/UploadFile.aspx?RadUrid=b12887c8-660c-47d1-af85-d4b4e4b8834a
    Request path: /UploadFile.aspx
    User host address: 10.23.24.25 
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: XXX\YYY 
 
Thread information:
    Thread ID: 21
    Thread account name: XXX\YYY 
    Is impersonating: False
    Stack trace:    at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
   at System.IO.BinaryWriter.Write(Byte[] buffer, Int32 index, Int32 count)
   at Telerik.WebControls.RadUploadUtils.FileBodyWriter.Write(Byte[] buffer, Int32 index, Int32 count)
   at Telerik.WebControls.RadUploadUtils.RequestParser.WriteProcessedPart(Int32 start, Int32 end)
   at Telerik.WebControls.RadUploadUtils.RequestParser.ProcessRequest(RequestStream request)
   at Telerik.WebControls.RadUploadHttpModule.Context_BeginRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Question: is there any way to catch this error more gracefully? Or even better, do the newer versions of the radupload component have fixed it?

Best regards,
Sam

2 Answers, 1 is accepted

Sort by
0
Accepted
Erjan Gavalji
Telerik team
answered on 29 Dec 2008, 08:46 AM
Hi Sam,

We had a similar error in the previous versions of RadUpload for ASP.NET, but it was fixed in the subsequent releases. It was caused by a glitch in the RadUploadHttpModule, which incorrectly determined that a file has ended and closed the stream.

RadUpload for ASP.NET Ajax is much more stable in terms of file handling, that's why I would recommend that you use it instead.

Kind regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Samwise
Top achievements
Rank 1
answered on 30 Dec 2008, 12:27 PM
Thank you for your quick answer. I will try that.
Tags
Upload (Obsolete)
Asked by
Samwise
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Samwise
Top achievements
Rank 1
Share this question
or