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

[Solved] Progress Area desn`t appear

2 Answers 95 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mando
Top achievements
Rank 1
Mando asked on 26 Apr 2009, 03:36 PM
Hi, I have the following web.config and the default page

<?

 

xml version="1.0"?>

 

<

 

configuration>

 

<

 

appSettings/>

 

<

 

connectionStrings/>

 

<

 

system.web>

 

<

 

httpRuntime maxRequestLength="102400" useFullyQualifiedRedirectUrl="true" executionTimeout="45"/>

 

<

 

securityPolicy>

 

<

 

trustLevel name="Full" policyFile="internal" />

 

<

 

trustLevel name="High" policyFile="web_hightrust.config" />

 

<

 

trustLevel name="Medium" policyFile="web_mediumtrust.config" />

 

<

 

trustLevel name="Low" policyFile="web_lowtrust.config" />

 

<

 

trustLevel name="Minimal" policyFile="web_minimaltrust.config"/>

 

</

 

securityPolicy>

 

<

 

trust

 

 

 

level="Full"

 

 

 

originUrl=""

 

 

 

processRequestInApplicationTrust="true" />

 

<

 

httpHandlers>

 

<

 

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

 

 

 

validate="false" />

 

<

 

add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI"/>

 

</

 

httpHandlers>

 

<

 

compilation debug="true">

 

<

 

assemblies>

 

<

 

add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

 

<

 

add assembly="Telerik.Charting, Version=2.0.4.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>

 

<

 

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>

 

</

 

compilation>

 

<

 

authentication mode="Windows"/>

 

</

 

system.web>

 

</

 

configuration>

And this is the page

 

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

 

<%

@ 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 id="Head1" runat="server">

 

 

 

 

 

<title>Example</title>

 

</

 

head>

 

<

 

body>

 

 

 

 

 

<form id="form1" runat="server">

 

 

 

 

 

&nbsp;<div>

 

 

 

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

 

 

 

 

 

</telerik:RadScriptManager>

 

 

 

 

 

<br />

 

 

 

 

 

<telerik:RadProgressManager

 

 

 

 

 

runat="server"

 

 

 

 

 

ID="progManager" />

 

 

 

 

 

<telerik:RadUpload

 

 

ID="RadUpload1"

 

 

runat="server"

 

 

ControlObjectsVisibility="None"

 

 

InputSize="30"

 

 

 

 

 

TargetFolder="files" />

 

 

<telerik:RadProgressArea

 

 

 

 

 

runat="server"

 

 

 

 

 

ID="progArea">

 

 

 

 

 

</telerik:RadProgressArea>

 

 

 

 

 

<asp:Button ID="btnPostback" runat="server" Text="Submit" onclick="btnPostback_Click" />

 

 

 

 

 

</div>

 

 

 

 

 

</form>

 

</

 

body>

 

</

 

html>

The file uploaded but I dont see the progress bar
even with the large files (60 MB or larger files )
Please fix it and I hope you give me example to upload multi files
Thanks

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Krzysztof
Top achievements
Rank 1
answered on 26 Apr 2009, 08:16 PM
i must add this code to web.config

    <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 verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, 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> 
 

importan is:

in :   <httpHandlers>
  <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI"/> 
 
and in: <httpModules> 

     <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/> 
 

tray it in my case when i add this links in web.config progress bar started to function 
0
Mando
Top achievements
Rank 1
answered on 26 Apr 2009, 08:30 PM
Thanks alot
I was missing this line
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>

Thanks
Tags
Upload (Obsolete)
Asked by
Mando
Top achievements
Rank 1
Answers by
Krzysztof
Top achievements
Rank 1
Mando
Top achievements
Rank 1
Share this question
or