CopyTo casuing 'Loading...' text to stay on screen

  •  07-27-2009, 6:29 AM

    CopyTo casuing 'Loading...' text to stay on screen

    Hi,
     
    I'm testing out the Framework 2.0-VB-MagicAjax/simple-upload-Validation.aspx page.
     
    When I add in:

    args.CopyTo("c:\\temp\\" & args.FileName)

    I get the 'Loading...' message appear on the top right of the page, and there it stays. I can't right click on the page, I can't click on any buttons, the only thing I can do it click the 'Back' button in the browser.
     
    I'm trying to save the uploaded file to a folder on the site and then redirect to another page.

    Any ideas ?
    I'm using .net version 2.0 and this is my web.config file:
     
    <?xml version="1.0"?>
    <configuration>
        <appSettings>
        </appSettings>
        <system.web>
            <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" />
                <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>

    Thanks
    James
View Complete Thread