If you want to use RadMemoryOptimization and RadProgressArea you must register RadUploadHttpModule in your application web.config file.
Important Notes
RadProgressManager will display error messages if it is unable to find RadUploadHttpModule.
RadUploadHttpModule is incompatible with the ASP.NET application trace.
RadUploadHttpModule is incompatible with other similar modules which handle file uploads.
The configuration file sections and attributes are case sensitive. This means that the sections and attributes below will be incorrect if they are written using a case other than shown the examples.
RadMemoryOptimization requires ReflectionPermission in order to operate correctly. This means that in normal circumstances you will have to run your application with Full Trust permission set, unless you create custom security policy, which allows ReflectionPermission. If you are unable to set Full Trust or custom security policy, the solution is to put the RadUpload assembly in GAC.
Registration
In order to register RadUploadHttpModule you need to:
- Open the Solution Explorer pane, navigate to the application web.config file and open it.
- Under the <configuration> element locate the <system.web> element. Add it if it does not exist.
- Under the <system.web> element locate the <httpModules> element. Add it if it does not exist.
- In the <httpModules> element add the following tag:
.NET Framework 1.x
|
<add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload" />
|
.NET Framework 2.0
|
<add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" />
|
- If the RadUpload assembly is added in GAC you need to specify the full assembly qualified path of the RadUploadHttpModule type (note that the assembly version might be different in your case):
.NET Framework 2.0:
|
<add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2, Version=2.3.0.0, Culture=neutral, PublicKeyToken=e8ab424810b6b9b5" />
|
The final result should look like this (.NET Framework 2.0, no GAC):
|
<configuration> ... <system.web> <httpModules> <add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" /> ... </httpModules> ... </system.web> </configuration>
|
Configuration (optional)
By default RadUploadHttpModule saves the uploaded files in the system's temp folder. To change the location for the temporary files, add the following tag into the <appSettings> element of your application web.config file:
|
<add key="Telerik.RadUpload.TempFolder" value="c:\temp" />
|
The value is the physical path to the folder where the temporary files will be saved. You should ensure that the ASPNET user (NetworkService in Windows Server 2003) has FullControl rights on this location. You can find more information on how to do this in the Setting ASPNET (NetworkService) Permissions help topic.
Note: From version 2.3.2.0 RadUpload supports application relative paths for this setting, e.g. you could use "~/Temp".
The final result should look like this:
|
<configuration> ... <appSettings> <add key="Telerik.RadUpload.TempFolder" value="c:\temp" /> ... </appSettings> ... </configuration>
|
More Information
You can find more information about registering httpModules in this article in MSDN.