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

Error when file uploaded

2 Answers 99 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Equipo Desarrollo
Top achievements
Rank 1
Equipo Desarrollo asked on 15 Mar 2011, 03:58 PM
Good afternoon,

I am working on an application that sends a message with one ore more file attached to it. I'm using a AsyncUpload control to accomplish the upload of the files while user can still be writting the message.

The problem is that, when deploying it, the following happens:
1. User chooses a file to upload: it begins uploading (progress bar starts moving and left icon remains orange)
2. After finishing upload, suddenly an exception is thrown. Exception can be one of these:
a) The proccess cannot access the file XXXXXX.doc because it is in use by other process: this only happens with small (200kb or less) files. Temporal file does not appear in the Temporary Filder.
b) Remote server said: NotFound: this happens with big files (9 MB more or less in our tests). In this case, we already find the file in the Temporary Folder. The fact is that the file there is ok. After changing its extension to ZIP (which was the file's extension), it works fine, so the file is correctly upload, but it stills throws an exception.

I've tried changing the security settings of the temporary folders, giving permissions to users, but nothing changes.

The curious thing is that this only happens in deplyment. Control works fine in local machine.

Do you have any idea about what I've done wrong?

2 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 18 Mar 2011, 10:28 AM
Hello Equipo Desarrollo,

We will need some more information in order to troubleshoot the issue that you experience. Regarding the first problem, is the file that you try to upload already opened? (in word for example). With respect to the second issue, please make sure that large file uploads are allowed in the web.config (the default limit is 4mb). Details on how to do this can be found here. Further, do you use custom handler or use the default one?

Kind regards,
Genady Sergeev
the Telerik team
0
Equipo Desarrollo
Top achievements
Rank 1
answered on 25 Mar 2011, 11:19 AM
Thank you very much. Problem was that Deployment server's web.config was configured for 2 MB while local web.config has a bigger limit.

Thanks again and sorry for the incovenience
Tags
AsyncUpload
Asked by
Equipo Desarrollo
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Equipo Desarrollo
Top achievements
Rank 1
Share this question
or