I am having some trouble using RadProgressArea and RadProgressManager with the RadUpload control. When i run it in VS it works fine, and the progressbar shows while uploading. When i publish it to IIS however, the file uploads but the progressbar does not show. I have looked through the suggestions here:http://www.telerik.com/help/aspnet-ajax/upload-troubleshooting-no-radprogressarea.html
But none of those options seems to be right. Also, i use several other RadControls that i have no issues with after deployment, so the telerik dll should be available.
Here is the entire code for my page:
And the codebehind:
And finally my web.config:
But none of those options seems to be right. Also, i use several other RadControls that i have no issues with after deployment, so the telerik dll should be available.
Here is the entire code for my page:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="ProScreen3.Publisher.WebForm1" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!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> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="True" EnableScriptGlobalization="True" EnableScriptLocalization="True"> </telerik:RadScriptManager> <telerik:RadProgressManager ID="RadProgressManager1" Runat="server" /> <br /> <telerik:RadUpload ID="RadUpload1" Runat="server" ReadOnlyFileInputs="True" Skin="Simple" MaxFileInputsCount="1" ControlObjectsVisibility="None"> <Localization Clear="Clear" Delete="Delete" Remove="Remove" Select="Choose" /> </telerik:RadUpload> <telerik:RadButton ID="btnUpload" runat="server"></telerik:RadButton> <br /> <br /> <telerik:RadProgressArea Visible="true" ID="RadProgressArea1" Runat="server" DisplayCancelButton="false" HeaderText="ProScreen" ProgressIndicators="TotalProgressBar, TotalProgress, TotalProgressPercent, CurrentFileName, TimeElapsed, TimeEstimated, TransferSpeed"> </telerik:RadProgressArea> <asp:Label ID="lblOut" runat="server" Text=""></asp:Label> </div> </form></body></html>And the codebehind:
Imports Telerik.Web.UIPublic Class WebForm1 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click For Each file As UploadedFile In RadUpload1.UploadedFiles lblOut.Text = file.GetName().ToString Next End SubEnd ClassAnd finally my web.config:
<?xml version="1.0"?><!-- For more information on how to configure your ASP.NET application, please visit --><configuration> <location path="Telerik.Web.UI.WebResource.axd"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> <location path="Style"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> <system.web> <authorization> <deny users="?"/> </authorization> <authentication mode="Forms"/> <sessionState mode="InProc"/> <compilation debug="true" strict="false" explicit="true" targetFramework="4.0"> <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> <httpHandlers> <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/> <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/> <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/> <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/> </httpHandlers> <pages enableSessionState="true"> <controls> <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/> </controls> </pages> <httpModules> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> <add type="System.Web.SessionState.SessionStateModule" name="Session"/> </httpModules> <httpRuntime maxRequestLength="21081920" executionTimeout="3600"/> </system.web> <appSettings/> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <handlers> <remove name="ChartImage_axd"/> <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/> <remove name="Telerik_Web_UI_DialogHandler_aspx"/> <remove name="Telerik_RadUploadProgressHandler_ashx"/> <remove name="Telerik_Web_UI_WebResource_axd"/> <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/> <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/> <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/> <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/> <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> </handlers> <security > <requestFiltering> <requestLimits maxAllowedContentLength="1024000000" /> </requestFiltering> </security> </system.webServer></configuration>