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

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

3 Answers 68 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Ravin
Top achievements
Rank 1
Ravin asked on 05 May 2014, 08:48 AM
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

3 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 07 May 2014, 11:38 AM
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.

 
0
Ravin
Top achievements
Rank 1
answered on 08 May 2014, 03:31 AM
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.
0
Nencho
Telerik team
answered on 12 May 2014, 11:11 AM
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.

 
Tags
AsyncUpload
Asked by
Ravin
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Ravin
Top achievements
Rank 1
Share this question
or