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

Upload Error in Load Balanced Server

3 Answers 181 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Pankaj
Top achievements
Rank 1
Pankaj asked on 04 Feb 2012, 03:15 PM

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

3 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 08 Feb 2012, 09:42 AM
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 >>
0
Orna
Top achievements
Rank 1
answered on 26 Feb 2012, 01:30 PM
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
0
Peter Filipov
Telerik team
answered on 29 Feb 2012, 04:25 PM
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.
Tags
AsyncUpload
Asked by
Pankaj
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Orna
Top achievements
Rank 1
Share this question
or