Upload Error in Load Balanced Server

4 posts, 0 answers
  1. Pankaj
    Pankaj avatar
    2 posts
    Member since:
    Dec 2011

    Posted 04 Feb 2012 Link to this post

    Hello ,

    We are facing a sporadic issue when using the RadUpload control in our website.

    The application is hosted    in a load balanced server and the session is stateless.

    This is what is happening. If the user uploads 10 files (then it creates 10 temp files on the server in RadUploadTemp folder.)We have 2 app servers and when the user access the server, it might get connected to appserver1. But there is no guarentee that for all the 10times it tries to access the server, it will always go to appserver1 as they are loadbalanced. The moment it hits appserver2, we get file not found exception. If it always hits appserver1 then all the files will be uploaded successfully

    We are get the error every now and then. Is there any configuration that can be set in the control that would make the control work without issues in case where the load balancing is set and the session is stateless?


    Thank you
    Regards
    Pankaj

  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 08 Feb 2012 Link to this post

    Hello Pankaj,

    To avoid duplication of the thread, please let continue our discussion into the support ticket.
    Using a shared folder will resolve the issue. Make sure that your application has a write permissions to that folder.

    All the best,
    Peter Filipov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Orna
    Orna avatar
    2 posts
    Member since:
    Sep 2011

    Posted 26 Feb 2012 Link to this post

    Hi Peter,
    I just came across this thread.
    Is that mean that the Asynch upload control cannot be used in an NLB environment? when I have no option to define shared directories.
    Thank you
    Orna
  4. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 29 Feb 2012 Link to this post

    Hello Orna,

    The problem in that setup is because the uploaded files are on both servers. After postback RadAsyncUpload control is looking for files, which can be on the other server and exception is thrown. The only way to avoid that behavior is to upload the files in shared folder.

    Regards,
    Peter Filipov
    the Telerik team
    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 their blog feed now.
Back to Top