File Upload Failed on production... sometimes

4 posts, 0 answers
  1. Wil
    Wil avatar
    11 posts
    Member since:
    Aug 2010

    Posted 25 Jun 2012 Link to this post

    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
  2. Wil
    Wil avatar
    11 posts
    Member since:
    Aug 2010

    Posted 25 Jun 2012 Link to this post

    The server is a Windows 2008 server, 64 bit, running IIS 7.
  3. DevCraft banner
  4. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 27 Jun 2012 Link to this post

    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 >>

  5. Wil
    Wil avatar
    11 posts
    Member since:
    Aug 2010

    Posted 28 Jun 2012 Link to this post

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