Cancel Image uploading is not actually cancel the AJAX request send to server, which cause apllication hanges

2 posts, 0 answers
  1. Pawan
    Pawan avatar
    2 posts
    Member since:
    Sep 2013

    Posted 05 Sep 2013 Link to this post


    I am using radasyncupload cutomhttphandler in my application, but it hangs the application some times while uploading (Even not hits on server side). To handle this scenario I have used a js timer to cancel the uploading after a specific time on clicking cancel button from js but Cancel Image uploading is not actually cancelling the AJAX request send to server, which cause application hangs. For terminating the request we also clicks on remove button it Aborts the request but Initiator is in pending state(please refer attached screen shot) and site still in hanged state. After 5-6 minute it automatically timeout and site is again responsive.

    Is there any option set the timeout for this uploader control only? We cannot set AutoPostbackTimeOut of scripmanager and Httpruntime timeout in config.
    Or any option to completely terminate the request sends to the server for uploading.

    Please find attached screen shot for referring pending request after cancelling and removing the request.
  2. Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 09 Sep 2013 Link to this post

    Hi Pawan,

    In general clicking on the cancel button cancels the request to the server with the notable exception of uploading files in IE6/7/8/9. In those versions of IE it is not possible to cancel the upload once sent to the server.

    On a side note what do you do in your custom handler so that it hangs the server? Perhaps there is a way to optimize that functionality so that it doesn't cause freezes.

    Genady Sergeev
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top