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

RADProgress not showing, RadUploadProgressHandler.ashx response shows "var rawProgressData = {InProgress:false,ProgressCounters:false};"

7 Answers 163 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 30 Jan 2009, 01:01 PM
Hi,

I have followed your support article on the RADProgress not showing but I still cannot get it working?  Its strange as i have it working in production with an older version (2008.2.826) but even if i try and use that in my dev environment it fails to show the progress control??

I have started with a brand new .net 3.5 web application running under the network service user on IIS6 on a WIN2K3 machine.  I have the following web.config:

<?xml version="1.0"?> 
<configuration> 
  <configSections> 
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" /> 
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
        </sectionGroup> 
      </sectionGroup> 
    </sectionGroup> 
  </configSections> 
  <appSettings /> 
  <connectionStrings /> 
  <system.web> 
    <compilation debug="false"
      <assemblies> 
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
        <add assembly="System.Data.DataSetExtensions, 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.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
      </assemblies> 
    </compilation> 
    <authentication mode="Windows" /> 
    <pages> 
      <controls> 
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" /> 
      </controls> 
    </pages> 
    <httpHandlers> 
      <remove verb="*" path="*.asmx" /> 
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> 
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" /> 
    </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.codedom> 
    <compilers> 
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
        <providerOption name="CompilerVersion" value="v3.5" /> 
        <providerOption name="WarnAsError" value="false" /> 
      </compiler> 
    </compilers> 
  </system.codedom> 
  <system.webServer> 
    <validation validateIntegratedModeConfiguration="false" /> 
    <modules> 
      <remove name="ScriptModule" /> 
      <remove name="RadUploadModule" /> 
      <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" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" /> 
    </modules> 
    <handlers> 
      <remove name="WebServiceHandlerFactory-Integrated" /> 
      <remove name="ScriptHandlerFactory" /> 
      <remove name="ScriptHandlerFactoryAppServices" /> 
      <remove name="ScriptResource" /> 
      <remove name="Telerik_RadUploadProgressHandler_ashx" /> 
      <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="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" /> 
    </handlers> 
  </system.webServer> 
  <runtime> 
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
      <dependentAssembly> 
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" /> 
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> 
      </dependentAssembly> 
      <dependentAssembly> 
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" /> 
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> 
      </dependentAssembly> 
    </assemblyBinding> 
  </runtime> 
</configuration> 

the following page..

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RADUpload._Default" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
    <asp:ScriptManager runat="server" /> 
    <telerik:radprogressmanager  
                id="RadProgressManager1" 
                runat="server"/>   
    <telerik:radprogressarea 
        id="RadProgressArea1"  
        runat="server"
    </telerik:radprogressarea>                
    <telerik:radupload  
        id="RadUpload1"  
        runat="server"/>     
    <br /> 
    <asp:Button ID="ButtonUpload" runat="server" onclick="ButtonUpload_Click" Text="upload"/> 
                     
    </div> 
    </form> 
</body> 
</html> 
 

and the following code behind...

using System; 
 
namespace RADUpload 
    public partial class _Default : System.Web.UI.Page 
    { 
        /// <summary> 
        /// Handles the user request to uploaded a new file. 
        /// </summary> 
        /// <param name="sender">object sender</param> 
        /// <param name="e">EventArgs e</param> 
        protected void ButtonUpload_Click(object sender, EventArgs e) 
        { 
            // Do we have an uploaded file? 
            if (RadUpload1.UploadedFiles.Count == 1) 
            { 
                // Save the temporary pic. 
                string filename = RadUpload1.UploadedFiles[0].FileName; 
            } 
        } 
    } 
 

But wehen i run this up and post a big file i use firebug and can see the web requests going to the site but the response is always

var rawProgressData = {InProgress:false,ProgressCounters:false}; 

Any ideas?

Thanks,

Jeff


7 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 02 Feb 2009, 02:04 PM
Hello Jeff,

Please add the following to the web.config

<location path="Telerik.RadUploadProgressHandler.ashx"
 <system.web> 
      <authorization> 
         <allow users="*"/> 
      </authorization > 
 </system.web> 
</location> 


Regards,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jeff
Top achievements
Rank 1
answered on 02 Feb 2009, 02:15 PM
Hi Veselin,

Thanks for your response.  Yeah I tried this as part of your troubleshooting guide here http://www.telerik.com/help/aspnet-ajax/upload_troubleshootingnoradprogressarea.html unfortunately this didn't resolve the problem.

Any other ideas? This must be something simple I just can't see it at the moment, I just have the basics and still can't get it working!!

Cheers,

Jeff
0
Veselin Vasilev
Telerik team
answered on 05 Feb 2009, 12:30 PM
Hello Jeff,

The code and the configuration look ok.

So, does the progress area works on a remote server and not on your local machine?

You need to try with a really big file (~100MB) in order to see it locally.
Additionally, can you try browsing your page (located on your machine) from a remote computer?

Regards,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Nelson
Top achievements
Rank 1
answered on 04 Jun 2010, 08:16 PM
This sounds similar to my problem. Have you figured this out yet?
0
Justin
Top achievements
Rank 1
answered on 23 Aug 2010, 10:52 PM
I have the same question, has this been figured out yet? Threads on this subject always end like this, no answer.
0
Genady Sergeev
Telerik team
answered on 26 Aug 2010, 12:36 PM
Hi Justin,

Can you please provide us with some details regarding your problem? Do you receive the same response from the server? (InProgress = false). It would be best if you open a support ticket with details regarding the issue that you experience. This will allow us to assist you better in solving the problem.

Greetings,
Genady Sergeev
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
0
Justin
Top achievements
Rank 1
answered on 26 Aug 2010, 02:33 PM
The showing part on my local box was just that I needed a 120MB file. I saw recommendations for 20/50/60 and went as high, never went bigger until I got it working on a real server by reordering the modules in web.config. After I saw it working on that server I went and picked the biggest file I could find, and it showed. It was just misleading firebug net panel was showing the progress manager sending back InProgress=false up to 10 times once per second for the duration of the upload. Even if the upload is happening rediculously fast or on the same machine etc., InProgress=false is iffy information. Thank-You for following up!

-- Justin
Tags
Upload (Obsolete)
Asked by
Jeff
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Jeff
Top achievements
Rank 1
Nelson
Top achievements
Rank 1
Justin
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or