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

Uploader Error

4 Answers 39 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 28 Jun 2017, 10:22 PM

I just updated my telerik controls, and a previously working uploader is now throwing an error. When I upload a file, it proceeds to try an upload but then throws the JS error below. I can't find a solution, any ideas?

Unhandled exception at line 2509, column 1 in http://localhost/Portal/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ContentBody_ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:ab0488d2-2a95-4bc4-9f11-51ca4952d5f7:ea597d4b:b25378d2;Telerik.Web.UI:en-US:f8fbf82e-0050-4b46-80b2-4fd09c29f9d6:16e4e7cd:f7645509:22a6274a:24ee1bba:33715776:52af31a4:5fa37e7e
0x800a139e - JavaScript runtime error: Exception thrown and not caught

4 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 29 Jun 2017, 01:56 PM
Hi Susan,

Can you, please, sahre some more details on the exact scenario that leads to the problem? Does it happen in all browsers or just to a specific one?

In addition, in order to see what the exact errom message is, please add a handler for the OnClientFileUploadFailed event, and inside it use the args.get_message() method to get the message. Send the result back to us.

Regards,
Vessy
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Thomas
Top achievements
Rank 1
answered on 03 Jul 2017, 07:15 PM

Thanks Vessy. I tried with Firefox and everything is working. But it does still error out with internet explorer (11.1358...).

 

The error is the same when I add a function for onClientFileUploadFailed, see the attached screenshot.

Here is the code for the control I'm using. It is not ever getting to the FileUploaded function due to the error.

<telerik:RadAsyncUpload ID="DmrFileUploader" runat="server" OnFileUploaded="DmrFileUploader_FileUploaded" AllowedFileExtensions=".jpeg,.jpg,.pdf,.png,.ppt,.pptx,.doc,.docx,.xls,.xlsx" MaxFileSize="5242880" >
<Localization Select="" />
</telerik:RadAsyncUpload>

0
Thomas
Top achievements
Rank 1
answered on 03 Jul 2017, 07:40 PM
To clarify, out production version works in firefox. The development version is now not working in either browser since I updated out DLLS to the most recent version.
0
Vessy
Telerik team
answered on 06 Jul 2017, 03:19 PM
Hi Susan,

Can you make sure that IE is not running into compatibility mode?

In addition, please, note that as of the latest version of the controls there are three new mandatory keys that have to be registered in the web.config due to security reasons:
http://docs.telerik.com/devtools/aspnet-ajax/general-information/web-config-settings-overview#mandatory-additions-to-the-webconfig

Last but not least, can you try whether re-generating the machine key of the application makes a difference?

Regards,
Vessy
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
AsyncUpload
Asked by
Thomas
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or