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.428.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.428.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.428.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.428.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

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.

"I just experimenting with your window and I must say that I am really so impressed with it.I am currently using teleik window but after I tried yours , I made my mind to move towards yours, what I really like about your components is the really simple API and it is light on browser, I made some tests comparing window to ... one and I must say your outtakes ..."

Ferasman