ProgressArea not displaying for RadUpload

Thread is closed for posting
4 posts, 0 answers
  1. Paul
    Paul avatar
    47 posts
    Member since:
    Dec 2008

    Posted 23 Mar 2011 Link to this post

    I have not been able to get the RadProgressArea displayed during a RadUpload file upload using the current 2011Q1 release running in ASP.Net 3.5. It was working fine with the previous Telerik release, but now I don’t see the progress area in any of the browsers I tested: IE 6, IE 8, IE 9, FF 4, Chrome 10, Safari 5 and Opera.

    Here are some excerpts from the web.config, which was updated by the Telerik wizard and then modified by me as best I could tell from the documentation. I’m hoping I got something wrong in the configuration, because the page code had not changed. Can anyone see anything wrong here? Or know of other issues with the progress area in the current version?

    <configuration>
    <!--Allow anonymous access to the Telerik Upload Progress Handler-->
    <location path="Telerik.RadUploadProgressHandler.ashx">
        <system.web>
            <authorization>
                <allow users="*" />
            </authorization>
        </system.web>
    </location>
      
    <system.web>
        <assemblies>
            <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
              
    <!--Next 3 assemblies added by Telerik RADControls for the editor.-->
            <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        </assemblies>
    <httpHandlers>
    <remove path="*.asmx" verb="*" />
            <add path="*.asmx" verb="*" validate="false" 
                type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add path="*_AppService.axd" verb="*" validate="false" 
                type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add path="ScriptResource.axd" verb="GET,HEAD" validate="false"
                type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add path="Reserved.ReportViewerWebControl.axd" verb="*" validate="false"
                type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
            <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" validate="false" 
                type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" />
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" validate="false" 
                type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" />
            <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" validate="false" 
                type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" />
                <add path="Telerik.Web.UI.WebResource.axd" verb="*" validate="false" 
                    type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
                <add path="ChartImage.axd" verb="*" validate="false" 
                    type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI" />
          </httpHandlers>
          
        <httpModules>
                <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />
          </httpModules>
    </system.web>
      
    <system.webServer>
        <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/>
        <validation validateIntegratedModeConfiguration="false" />
        <modules>
            <remove name="ScriptModule" />
            <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="integratedMode" />
        </modules>
        <handlers>
            <remove name="WebServiceHandlerFactory-Integrated" />
            <remove name="ScriptHandlerFactory" />
            <remove name="ScriptHandlerFactoryAppServices" />
            <remove name="ScriptResource" />
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" 
                type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" 
                type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="ReportViewerWebControl" path="Reserved.ReportViewerWebControl.axd" verb="*" 
                type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
            <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" 
                type="Telerik.Web.UI.WebResource, Telerik.Web.UI" verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" 
                type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" 
                type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" verb="*" preCondition="integratedMode" />
            <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" 
                type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" verb="*" preCondition="integratedMode" />
            <add name="ChartImage_axd" path="ChartImage.axd" verb="*" preCondition="integratedMode" 
                type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI" />
        </handlers>
  2. Paul
    Paul avatar
    47 posts
    Member since:
    Dec 2008

    Posted 24 Mar 2011 Link to this post

    I was able to get this working. I made a number of changes, but I think the significant change was copying the web.cofig HttpHandlers and Modules from the current RadControls LiveDemos folder's Web.config.Net35. I copied the current versions from both <system.web> and in <system.webServer>.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Paul
    Paul avatar
    47 posts
    Member since:
    Dec 2008

    Posted 24 Mar 2011 Link to this post

    One other change was significant. I had set the RadProgressManager.RegisterForSubmit to false. In previous RadControl versions the progress area was still displayed while RadUpload was uploading a file. Apparently in this version it no longer does. I added a javaScript call to start the progress polling when beginning the file upload. Otherwise, leaving the default of true for RegisterForSubmit got the progress area to display during file submission, but also during other page submission events, which was misleading to the user.
    <script type="text/javascript">
        function ButtonSubmitDocument_clientClick() {
            var button = document.getElementById('<%= ButtonSubmitDocument.ClientID %>');
            button.value = "Please Wait...";
            button.enabled = false;
            getRadProgressManager().startProgressPolling();
            return true;
        }
    </script >
    <asp:Button ID="ButtonSubmitDocument" runat="server" Visible="true"
        Text="Submit Supplemental PDF" 
        OnClick="ButtonSubmitDocument_OnClick" 
        OnClientClick="ButtonSubmitDocument_clientClick()"
        />
  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 28 Mar 2011 Link to this post

    Hello Paul,

    I am glad that you have managed to resolve the issue. Indeed, in some cases if the page size is very large RadProgressArea will pop up on form submission even if there is no file selected. The workaround that you have used is pretty fine. However, there is another workaround as well. Here are the steps:

    1) Open the web.config and find the appSettings section
    2) Once there, add the following setting:

    <add key="AllowCustomProgress" value="false" />

    This should resolve the issue.

    Kind regards,
    Genady Sergeev
    the Telerik team
Back to Top