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

Progress bar not moving on production server (but works on dev box)

1 Answer 94 Views
ProgressArea
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 30 May 2014, 05:22 PM
Here are the problem details. If anyone has any ideas, I would appreciate it:
  1. Using ASP.NET AJAX Q2 2013 SP1
  2. Simple file upload page using RadUpload,RadProgressManagerand RadProgressArea  (see aspx page and web.config below)
  3. Progress bar moves and updates properly running on developer machine using IIS 7.5.
  4. But, when running on Windows 2008 R2 server using IIS 7.5, the following happens:
    • Progress bar does not move
    • The Uploaded percentage and byte count remain at zero during the upload.
    • The progress area filename is blank during the upload.
    • The file DOES successfully upload.
    • When upload is complete, upload percentage is 100% and byte count matches total file size.
  5. Used fiddler to compare dev machine vs server mid-progress traffic and noticed JSON progress status details are zero/blank when run on server. And they are correct when run on dev machine (see comparison below)
// Running on Server
var rawProgressData = {InProgress: true,
ProgressCounters: true,
CurrentOperationText: '',
PrimaryTotal: '168.26MB',
PrimaryValue: '0B',
PrimaryPercent: '0',
SecondaryValue: '0',
Speed: '0B/s',
TimeElapsed: '20311',
TimeEstimated: '2147483647',
OperationComplete: 'false',
RadUpload: { RequestSize: 176433547, Bytes: 0, FilesCount: 0, CurrentFileName: '', RequestLength: 176433547 }};

 

// Running on developer machine
var rawProgressData = {InProgress: true,
ProgressCounters: true,
CurrentOperationText: 'C:\\test\\test.zip',
PrimaryTotal: '168.26MB',
PrimaryValue: '102.49MB',
PrimaryPercent: '61',
SecondaryValue: '0',
Speed: '191.21MB/s',
TimeElapsed: '536',
TimeEstimated: '344',
OperationComplete: 'false',
RadUpload: { RequestSize: 176433596, Bytes: 107464352, FilesCount: 0, CurrentFileName: 'C:\\test\\test.zip',RequestLength: 176433596 }};

ASPX Page

<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div>
    <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
    <telerik:RadUpload ID="RadUpload1" runat="server"
        TargetFolder="~/Test"
        MaxFileSize="400000000"
        ReadOnlyFileInputs="true"
        EnableFileInputSkinning="false"
        MaxFileInputsCount="1"
        ControlObjectsVisibility="None"
        OverwriteExistingFiles="True" 
        >
    </telerik:RadUpload>
    <telerik:RadProgressArea ID="RadProgressArea1" runat="server"
        ProgressIndicators="TotalProgressBar, TotalProgress, TotalProgressPercent, RequestSize, CurrentFileName, TimeElapsed, TimeEstimated, TransferSpeed" >
    </telerik:RadProgressArea>
   <asp:Button ID="UploadButton" runat="server" Text="Upload" />   
</div>
</form>

web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.web>
      <compilation strict="false" explicit="true" targetFramework="4.5">
        <assemblies>
          <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </assemblies>
      </compilation>
      <httpRuntime targetFramework="4.5" maxRequestLength="500000" />
      <!--500 MB-->
      <httpHandlers>
        <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" 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" />
      <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />   
    </handlers>
    <modules>
      <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />
    </modules>
      <security>
          <requestFiltering>
              <requestLimits maxAllowedContentLength="509715200"/>
              <!-- Max request/upload size=500MB for IIS-->
          </requestFiltering>
      </security>
  </system.webServer>
</configuration>

Thanks

1 Answer, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 03 Jun 2014, 04:09 PM
Hi Craig,

What is the name of the page? Is it Default.aspx, if so please try to open the page as you include it in the url:

http://localhost/Default.aspx and test again.

If this doesn't help, please send us a fiddler log.

Regards,
Hristo Valyavicharski
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ProgressArea
Asked by
Craig
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or