Some configuration is needed in the web.config to run WebFileUploader in IIS7.
=In this topic, you will learn how to configure web.config.
To configure WebFileUploader for IIS 7 application
- Follow the configuration required to run WebFileUploader in IIS6.
- Set maxAllowedContentLength to a higher value, which is measured in bytes, to 100MB in web.config. Here is the snippet:
<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="104857600" /> </requestFiltering> </security> </system.webServer> - Unlock the mode override in applicationHost.config. Open IIS 7 application configuration file, default location in C:\windows\system32\inetsrv\config, and change the overrideModeDefault to Allow. Here is the snippet:
<section name="requestFiltering" overrideModeDefault="Allow" />
- Add WebFileUploader handler to <handlers> section under <system.webServer>. Here is the snippet:
<add name="WebFileUploaderHttpHandler" verb="GET" path="WebFileUploaderHttpHandler.axd" type="ISNet.WebUI.WebTextEditor.WebFileUploaderHttpHandler, ISNet.WebUI.WebTextEditor" preCondition="integratedMode" />
- Add WebFileUploader module to <modules> section under <system.webServer>. Here is the snippet:
<add name="WebFileUploaderHttpModule" preCondition="managedHandler" type="ISNet.WebUI.WebTextEditor.WebFileUploaderHttpModule, ISNet.WebUI.WebTextEditor" />