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

File Upload Failed on production... sometimes

3 Answers 133 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Wil
Top achievements
Rank 1
Wil asked on 25 Jun 2012, 10:35 AM
Hello

i'm using a radupload handler on my silverlight 4 app, with Telerik controls 2011-Q1 (411). Updating to newer version now is not an option.

The problem happens on production, but just from some computers only: the upload process doesn't even begin, and the FileUploadFailed event is fired, with an empty error message. I say "from some computers" because from my dev laptop the upload works consistently 100% of the times, while from some other computer it never works. Just the empy message FileUploadFailed event.

I got the transmission on Fiddler, and the server is responding with result code 200: {"JSONData":[{"Key":"RadUAG_chunkTag","Value":"0f3eea43-efbc-424b-8f24-9ceae300904d"},{"Key":"0_RadUAG_finalFileRequest","Value":false},{"Key":"0_RadUAG_success","Value":false}]}

What may be the source of the problem? What can i check?

Thanks for the help

3 Answers, 1 is accepted

Sort by
0
Wil
Top achievements
Rank 1
answered on 25 Jun 2012, 10:52 AM
The server is a Windows 2008 server, 64 bit, running IIS 7.
0
Tina Stancheva
Telerik team
answered on 27 Jun 2012, 12:35 PM
Hi Wil,

Unfortunately we're not sure what is causing the exception as the FileUploadFailed event is fired with no error. Basically you can try the suggestions in our troubleshooting article to see if they will help. Also, you can debug your UploadHandler class implementation by overriding the SaveChinkData() method and putting a breakpoint in it to see if it's ever called and if it is to see if there are any errors thrown there.

The upload process might also fail if the control can't find the path to the handler indicated by the UploadServiceUrl property. So if you're using a relative path to access the handler, you can change it to absolute to see if this will fix the issue. Also,in this case please make sure that the UploadHandler can be accessed from the client-side application.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Wil
Top achievements
Rank 1
answered on 28 Jun 2012, 10:04 AM
Thanks Tina.

I discovered the error in my code when i changed to a different way of uploading file, using a simple WebClient instead. Basically the server was performing the authentication of the users in a funny way, and was allowing the code to be executed depending on the past activities, so that's why my laptop was always working, but never from other computer.

Thanks anyway
Tags
Upload
Asked by
Wil
Top achievements
Rank 1
Answers by
Wil
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or