Error when file uploaded

3 posts, 0 answers
  1. Equipo Desarrollo
    Equipo Desarrollo avatar
    7 posts
    Member since:
    Sep 2012

    Posted 15 Mar 2011 Link to this post

    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. Genady Sergeev
    Genady Sergeev avatar
    1595 posts

    Posted 18 Mar 2011 Link to this post

    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
  3. DevCraft R3 2016 release webinar banner
  4. Equipo Desarrollo
    Equipo Desarrollo avatar
    7 posts
    Member since:
    Sep 2012

    Posted 25 Mar 2011 Link to this post

    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
Back to Top