json error uploading file with AsyncUpload

3 posts, 0 answers
  1. Ira
    Ira avatar
    4 posts
    Member since:
    Sep 2006

    Posted 15 Dec 2016 Link to this post

    I am using RadAsyncUpload as follows:

    <telerik:RadAsyncUpload ID="radUpload1" runat="server" AllowedFileExtensions=".wav,mp3"
        AllowedMimeTypes="audio/wav,audio/x-wav,audio/mpeg,audio/mp3" ControlObjectsVisibility="None" MaxFileInputsCount="1" OverwriteExistingFiles="True"
        ReadOnlyFileInputs="True" Width="400px" PostbackTriggers="btnUpload" OnFileUploaded="radUpload1_FileUploaded" Localization-Select="Browse"
        OnClientFileUploadFailed="OnClientFileUploadFailed" OnClientValidationFailed="OnClientValidationFailed">

    When I run my website on my development server it works file. When I copy the website to my production server with the exact save configuration and upload a file, it gets "stuck" on the upload with yellow blinking graphic and the following error in the web site console:

    Uncaught SyntaxError: Unexpected token < in JSON at position 0
        at JSON.parse (<anonymous>)
        at Function.m.parseJSON (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=radScriptManager1_TSM&compress=1&_TSM_CombinedScri…:3389)
        at g.callback (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=radScriptManager1_TSM&compress=1&_TSM_CombinedScri…:17069)
        at XMLHttpRequest.m (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=radScriptManager1_TSM&compress=1&_TSM_CombinedScri…:17180)


    I have run http://login.connectmevoice.com/Telerik.Web.UI.WebResource.axd and I get a blank page so I know it's registered correctly. Any idea on what the issue can be?

    Thank you.



  2. Ira
    Ira avatar
    4 posts
    Member since:
    Sep 2006

    Posted 15 Dec 2016 in reply to Ira Link to this post

    FYI, both servers at running Windows Server 2012 R2 IIS8
  3. Peter Milchev
    Peter Milchev avatar
    183 posts

    Posted 20 Dec 2016 Link to this post

    Hello Ira,

    Similar errors are encountered when not all handlers are configured correctly. Unfortunately, the provided information is insufficient for us to pinpoint the exact problem. Here are some resources that might be helpful: 
    If that does not help solving the issue, would you please send us an isolated sample runnable project with just the AsyncUpload control and the web.config that reproduces the issue? Thus, we would be able to investigate further your exact scenario and help you more efficiently. 

    Peter Milchev
    Telerik by Progress
    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.
Back to Top