Re: uploadmodule is not installed in the web.config

  •  07-24-2009, 8:15 AM

    Re: uploadmodule is not installed in the web.config

    Hi,

    I've got rid of the error and the page now works. My web.config file >>>>

    <?xml version="1.0"?>
    <configuration>
        <appSettings>
            <!-- You can set a low upload speed to test the progress bar. -->
            <!--
      <add key="CuteWebUI.AjaxUploader.UploadSpeedKB" value="20" />
      -->
        </appSettings>
        <system.web>
            <httpRuntime maxRequestLength="2000000"/>
            <pages>
                <controls>
                    <add namespace="CuteWebUI" assembly="CuteWebUI.AjaxUploader" tagPrefix="CuteWebUI"/>
                    <add namespace="MagicAjax.UI.Controls" assembly="MagicAjax" tagPrefix="MagicAjax"/>
                </controls>
                <namespaces>
                    <add namespace="System.Collections.Generic"/>
                    <add namespace="System.IO"/>
                    <add namespace="System.Data"/>
                    <add namespace="System.Data.SqlClient"/>
                </namespaces>
            </pages>
            <compilation debug="true">
                <assemblies>
                    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                </assemblies>
            </compilation>
            <httpHandlers>
                <remove verb="*" path="*.asmx"/>
                <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
            </httpHandlers>
            <httpModules>
                <add name="MagicAjax" type="MagicAjax.MagicAjaxModule, MagicAjax" />
                <!-- UploadModule is optional , for the property Uploader.ShowProgress -->
                <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
            </httpModules>
        </system.web>
        <system.webServer>
            <modules>
                <remove name="MagicAjax"/>
                <add name="MagicAjax" type="MagicAjax.MagicAjaxModule, MagicAjax" />
                <remove name="CuteWebUI.UploadModule"/>
                <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
            </modules>
        </system.webServer>
    </configuration>


    Notice the extra lines in <system.webServer> that are not included in the original files when you download the examples from this site

        <system.webServer>
            <modules>
                <remove name="MagicAjax"/>
                <add name="MagicAjax" type="MagicAjax.MagicAjaxModule, MagicAjax" />
                <remove name="CuteWebUI.UploadModule"/>
                <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
            </modules>
        </system.webServer>
View Complete Thread