FileUploadFailed - how to get error message?

3 posts, 0 answers
  1. Felix
    Felix avatar
    3 posts
    Member since:
    May 2016

    Posted 26 May Link to this post

    I have an RadUpload with nothing special configured in my Silverlight XAML.

    <telerik:RadUpload ... FileUploadFailed="RadUpload_OnFileUploadFailed"/>

    The Handler in the Code behind is also straight forward.

    private void RadUpload_OnFileUploadFailed(object sender, FileUploadFailedEventArgs e) {

    In the RadUploadHandler at server side I throw an exception.

    public class MyUpload : RadUploadHandler {
      public override string GetTargetFolder() {
        throw new Exception("UploadPath not configured.");    

    But in RadUpload_OnFileUploadFailed I can't get the message. e.ErrorMessage is an empty string, no other property of e contains the message.

    In the code of RadUploadHandler I can see that exceptions are caught and message is sent back to client like following in method ProcessRequest:

    this.AddReturnParam("RadUAG_message", (object) ex.Message);

    Also Fiddler shows that the message is sent to the client. Why it doesn't appear in the FileUploadFailedEventArgs?

  2. Kiril Vandov
    Kiril Vandov avatar
    323 posts

    Posted 31 May Link to this post

    Hello Felix,

    This is a known issue in our RadUpload control. Please note that we cannot bound to any time frame for the issue. Unfortunately there is no known workaround for this issue.

    Please excuse us for any inconvenience caused.

    Kind regards,
    Kiril Vandov
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
  4. Felix
    Felix avatar
    3 posts
    Member since:
    May 2016

    Posted 31 May Link to this post

    OK, it's a pity, but I will deal with it.
Back to Top