Silverlight error on IE 8 when uploading an office document which is open in word/excel

4 posts, 0 answers
  1. Ravin
    Ravin avatar
    8 posts
    Member since:
    Dec 2012

    Posted 05 May 2014 Link to this post

    Telerik version 2012.3.1308.35

    RasAsyncUpload gives the following error in IE 8 when uploading a docx/xlsx document which is currently opened in word or excel in edit mode (not in the reading mode).

    Unhandled Error in Silverlight Application Failed to Invoke: _onSilverlightError.   at System.Windows.Browser.ScriptObject.Invoke(String name, Object[] args)
       at UploadPrototype.EventManager.SilverlightError(String message, Int32 index)
       at UploadPrototype.MainPage.<>c__DisplayClassb.<ProcessRequest>b__6()

    I can only upload the document when I close the document in word/excel.

    I'm using a blank Asp.net 4.0 web application. In the web.config I have the following because my website needs to be restricted to IE 8 (due to existing legacy code).
        <httpProtocol>
          <customHeaders>
            <clear />
            <add name="X-UA-Compatible" value="IE=8" />
          </customHeaders>
        </httpProtocol>

    The problem only occurs when I put IE=8 and IE=9. It does not occur in IE 10 or 11 mode or in other browsers.

    Is it a bug in RadSyncUpload? or a problem with silverlight in IE 8 and IE 9?

    Thanks

  2. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 07 May 2014 Link to this post

    Hello Ravin,

    The experienced issue is a Silverlight security restriction. I would suggest you to try disabling the plugins (in order to use iframe) by setting the DisablePlugins property of the RadAsyncUpload to true. Another possible approach would be to handle the OnClientFileUploadFailed client-side event, which should be fired when the exception is hit and raise a descriptive message.

    Regards,
    Nencho
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ravin
    Ravin avatar
    8 posts
    Member since:
    Dec 2012

    Posted 07 May 2014 in reply to Nencho Link to this post

    Thanks. But unfortunately OnClientFileUploadFailed and OnClientValidationFailed events does not get fired when this error occurs. So I have no way to detect it.

    The only option is to set DisablePlugins=true if it is IE 8.

    Do you have any other workarounds?
    Thanks.
  5. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 12 May 2014 Link to this post

    Hello Ravin,

    I am afraid that there is no other workaround, but to disable the plugins, by the previously mentioned property of the RadAsyncUpload.


    Regards,
    Nencho
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top