RadControls for ASP.NET AJAX
In order to use RadProgressArea,
you need to add RadProgressManager (as long as RadProgressArea) to your
page and must register RadUploadProgressHandler and
RadUploadHttpModule in your application web.config file.
Note |
|---|
As of Q3 SP1 2008 (2008.3.1125), you can use the SmartTag of the
RadProgressManager to add all settings.
|
Caution |
|---|
RadProgressManager displays error messages if it is unable to find
RadUploadHttpModule.RadUploadHttpModule is incompatible with the ASP.NET
application trace andRadUploadHttpModule is incompatible with other similar
modules that handle file uploads.
|
Registration for IIS versions prior to version 7
CopyXML
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
now the <httpModules> section is likely to look like this:
CopyXML
<httpmodules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
</httpmodules>
CopyXML
<pre xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
<add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler"
verb="*" validate="false" />
</pre>
now the <httpHandlers> section is likely to look like this:
CopyXML
<httpHandlers>
<remove verb="*" path="*.asmx" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
validate="false" />
<add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler"
verb="*" validate="false" />
</httpHandlers> Note |
|---|
It is not necessary the ashx page in the path attribute above to exist, but you should
ensure that the framework is configured to skip the ASHX file existence check.
|
Registration for IIS 7
CopyXML
<add name="RadUploadModule" precondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />
CopyXML
<add name="Telerik_RadUploadProgressHandler_ashx" verb="*" precondition="integratedMode"
path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" /> Note |
|---|
It is not necessary the ashx page in the path attribute above to exist, but you should ensure
that the framework is configured to skip the ASHX file existence check.
|
Now the <system.webServer> section could look like this:
CopyXML
<system.webserver>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.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=1.0.61025.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>
Note |
|---|
Note: The above web.config snippets are valid for .NET 2.0.
The version of the System.Web.Extensions in .NET 3.5 is 3.5.0.0 |
<section name="requestFiltering" overrideModeDefault="Deny" />
Set the overrideModeDefault property to Allow. So now the line should look like:
CopyXML
<section name="requestFiltering" overridemodedefault="Allow" />
Forms Authentication
If your application uses Forms Authentication, you must make an additional change to the
<location> section. RadProgressManager looks for
RadUploadProgressHandler in the root directory of your application
(e.g. http://YourServerName/ApplicationName/Telerik.RadUploadProgressHandler.ashx).
To ensure its proper operation, you must allow access to unauthenticated users for the path to
RadUploadProgressHandler. Put the following lines in your application web.config:
CopyXML
<location path="Telerik.RadUploadProgressHandler.ashx">
<system.web>
<authorization>
<allow users="*"/>
</authorization >
</system.web>
</location>
For more information about the location section of web.config, see this MSDN article.
UrlRewriters
If you are using URL rewriter you should exclude
the following path from rewritinghttp://MyServer/MyApplication/Telerik.RadUploadProgressHandler.ashx
See Also