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.

"Perfect! Honestly, you guys make me look brilliant. Your components offer a dynamic, and professionally designed experience for my users. The TreeView has been invaluable to me, huge datasets and enormous hierarchies are a snap. However, when you first introduced the CALLBACK, you rocked my world! Having moved from desktop to web applications, I missed the functionality I used to have. You gave it back - thank you. I can't tell you the number of times I've been asked "How'd you do that?" (even from our tech support and contractors)."

John Cappelletti

Random testimonial   All testimonials