uploadmodule is not installed in the web.config

Last post 07-24-2009, 1:28 PM by Adam. 2 replies.
Sort Posts: Previous Next
  •  07-24-2009, 8:03 AM 54238

    uploadmodule is not installed in the web.config

    Hi,
     
    I've just purchased a domain license and I can't get the demo's to work.
     
    The one I'm looking at is 'Framework 2.0-VB-MagicAjax'. After time spent recoding the web.config file I'm now get the following error when I click either button on the page:
     
    "UploadModule is not installed into web.config.!"

    I'm working on a Vista machine, with IIS 7 and I'm using version 2 of .net in this instance. The files are also running on my localhost with a folder called 'Webapplication, therefore the url I'm looking at on my machine is 'http://localhost/Webapplication/simple-upload.aspx'

    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" />
            </modules>
        </system.webServer>
    </configuration>

    Any ideas ?

    James
  •  07-24-2009, 8:15 AM 54239 in reply to 54238

    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>
  •  07-24-2009, 1:28 PM 54262 in reply to 54239

    Re: uploadmodule is not installed in the web.config

    Glad to know you resolved this issue.  To clarify this issue, there are two methods to add AjaxUploader httpModule to web.config's httpModules list.

    IIS 6.0 and IIS 7.0 Classic mode

    <configuration>
      <system.web>
        <httpModules>
          <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
         </httpModules>
      </system.web>
    </configuration>

    IIS 7.0 Integrated mode

    <configuration>
      <system.webServer>
        <modules>
          <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
        </modules>
      </system.webServer>
    </configuration>

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML