Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > General Discussions > Problem in Async upload
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Problem in Async upload

Feed from this thread
  • Reyaz Ahmad Intermediate avatar

    Posted on Apr 4, 2011 (permalink)

    Hi,

    In the page i have written following line of code. (I take help from http://demos.telerik.com/aspnet-ajax/upload/examples/async/validation/defaultcs.aspx), When i run the application and select file it does not show only ("AllowedFileExtensions="jpg,jpeg,png,gif") but in demo link which i mentioned above is working fine. please suggest where is problem. Please find attached screen.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="Buttons" />

    <script type="text/javascript">
        //<![CDATA[
        function validationFailed(sender, eventArgs) {
            $(".ErrorHolder").append("<p>Validation failed for '" + eventArgs.get_fileName() + "'.</p>").fadeIn("slow");
        }
        //]]>
    </script>

    <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="ScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <div>
            <telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" AllowedFileExtensions="jpg,jpeg,png,gif"
                MaxFileSize="524288" OnFileUploaded="RadAsyncUpload1_FileUploaded" OnClientValidationFailed="validationFailed">
            </telerik:RadAsyncUpload>
            <asp:Button runat="server" ID="BtnSubmit" Text="Submit" />
        </div>
        </form>
    </body>
    </html>
    Attached files

  • Peter Filipov Peter Filipov admin's avatar

    Posted on Apr 4, 2011 (permalink)

    Hello Reyaz Ahmad,

    I have reproduced your issue with controls' version 2010.Q1.
    The reason for this issue to appear is because the asyncupload control doesn't work with flash/silverlight in that version.
    To avoid it please use the latest version of the controls(now they use flash/ silverlight to upload files and can filter the file types as you want).

    Regards,
    Peter Filipov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

  • Albert avatar

    Posted on May 18, 2011 (permalink)

    Hi,

    I am using asyncupload and i am having this error:

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
    Timestamp: Thu, 19 May 2011 00:32:36 UTC

    Message: Exception thrown and not caught
    Line: 199
    Char: 8
    Code: 0

    Message: Unhandled Error in Silverlight Application The remote server returned an error: NotFound.   at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
       at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at UploadPrototype.MainPage.ProcessResponse(IAsyncResult asyncResult)
       at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassd.<InvokeGetResponseCallback>b__b(Object state2)
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
    Line: 1
    Char: 1
    Code: 0

    Message: 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__DisplayClass1f.<ProcessResponse>b__18()
    Line: 1
    Char: 1
    Code: 0

    This is the control tag in my page:

    <
    telerik:RadAsyncUpload ID="AsyncUpload1" runat="server" AllowedFileExtensions="xls,xlsx" MaxFileSize="524288" OnFileUploaded="AsyncUpload1_FileUploaded" OnClientValidationFailed="validationFailed"></telerik:RadAsyncUpload>

     

    The control is in a user control deployed in sharepoint as webpart.  This is the scriptmanager inside the masterpage of sharepoint:

     <asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false"
        EnableScriptLocalization="true">
       <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
       </Scripts>
      </asp:ScriptManager>

    I cannot include radscript manager in my user control as it is throwing an error saying that only a single scriptmanager should be on a page.  Changing the asp scriptmanager control on the masterpage to radscriptmanager does not correct the error.

    Any help on this is highly appreciated.

    Thanks!

  • Albert avatar

    Posted on May 18, 2011 (permalink)

    I've managed to make it work.  It's just a missing telerik webresource in web.config. 

  • Alin avatar

    Posted on Jun 17, 2011 (permalink)

    Hello

    I have the same strange error, related with Silverlight, when using async file uploader.
    What is the solution for this, I still didn't get it :( I downloaded the last version of telerik asp.net ajax and referenced the dlls accordingly in my  visula studio projects, though the same error continues to appear. Strangely enough, it works ok when I test in debug mode, on my dev machine. It isn't working when I deploy the app on some other machine, with a normal working IIS!
    Could some one plz tell me what i am missing?
    Albert, what do you mean you solve it by a missing telerik resource in web.config? Could it work for me too?
    Thx a lot.

  • Peter Filipov Peter Filipov admin's avatar

    Posted on Jun 22, 2011 (permalink)

    Hi Alin,

    Please review your web config file for the following configuration:

    <configuration>
      <system.web>
        <compilation debug="false" targetFramework="4.0" />
        <httpHandlers>
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        </httpHandlers>
      </system.web>
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
        </handlers>
      </system.webServer>
    </configuration>
    Please make sure that handler(Telerik_Web_UI_WebResource_axd) is into the system.webServer section.

    Greetings,
    Peter Filipov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  • Alin avatar

    Posted on Jun 22, 2011 (permalink)

    Thx a lot.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > General Discussions > Problem in Async upload