Here are the problem details. If anyone has any ideas, I would appreciate it:
- Using ASP.NET AJAX Q2 2013 SP1
- Simple file upload page using RadUpload,RadProgressManagerand RadProgressArea (see aspx page and web.config below)
- Progress bar moves and updates properly running on developer machine using IIS 7.5.
- 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.
- 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 Servervar 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 machinevar 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