ASP.NET File Upload Progress - Registration


IIS 6.0 and IIS 7.0 Classic mode:
  1. Open the Solution Explorer pane, navigate to the application web.config file and open it.

  2. Under the <configuration> element locate the <system.web> element. Add it if it does not exist.

  3. Under the <system.web> element locate the <httpModules> element. Add it if it does not exist.

  4. In the <httpModules> element add the following tag:

    <add name="OboutUploadModule"
           type="OboutInc.FileUpload.UploadProgressModule, obout_FileUpload, Version=1.10.806.1,
                    Culture=neutral, PublicKeyToken=c8b4009f4d53d5e5
    " />


The final result should look like this

<configuration>
   ...
   <system.web>
     ...
     <httpModules>
        ...
        <add name="OboutUploadModule"
                type="OboutInc.FileUpload.UploadProgressModule, obout_FileUpload, Version=1.10.806.1,
                         Culture=neutral, PublicKeyToken=c8b4009f4d53d5e5
" />

     </httpModules>
  </system.web>
</configuration>


IIS 7.0 Integrated mode:
  1. Open the Solution Explorer pane, navigate to the application web.config file and open it.

  2. Under the <configuration> element locate the <system.webServer> element. Add it if it does not exist.

  3. Under the <system.webServer> element locate the <modules> element. Add it if it does not exist.

  4. In the <modules> element add the following tag:

    <add name="OboutUploadModule"
           type="OboutInc.FileUpload.UploadProgressModule, obout_FileUpload, Version=1.10.806.1,
                    Culture=neutral, PublicKeyToken=c8b4009f4d53d5e5
    " />


The final result should look like this

<configuration>
   ...
   <system.webServer>
     ...
     <modules>
        ...
        <add name="OboutUploadModule"
                type="OboutInc.FileUpload.UploadProgressModule, obout_FileUpload, Version=1.10.806.1,
                         Culture=neutral, PublicKeyToken=c8b4009f4d53d5e5
" />

     </modules>
  </system.webServer>
</configuration>

The configuration file sections and attributes are case sensitive. This means that the above sections and attributes will be incorrect if they are written using a case other than shown.

More Information

You can find more information in this MSDN article.


Important Notes

Never enable tracing for an application:
<trace enabled="true" ... />
It may hang the UploadProgressModule.

File Upload Progress control does not appears in the Page if it is unable to find UploadProgressModule.
Files uploading will be completed anyway.

UploadProgressModule does not work when files are uploading using AJAX calls. This is a limitation of the XmlHttpRequest component, used in the AJAX frameworks for asynchronous calls to the application. In order to upload a file you should perform a full page postback.

UploadProgressModule is incompatible with other similar modules which handle file uploads.

"Wonderful components! It is so easy to use your controls."

Maria S

Random testimonial   All testimonials