Clicking on the Upload button gives 'Object Expected' error

Last post 12-04-2008, 9:44 AM by Adam. 5 replies.
Sort Posts: Previous Next
  •  12-03-2008, 4:08 AM 46502

    Clicking on the Upload button gives 'Object Expected' error

    Hi,
     
    I was trying to install your trial version. I have created a sample page in my application.
     
    I am getting 'Object Expected' error in IE 8 beta and  nothing happening (just page reloads) in Firefox 3.0.4 in Windows XP machine while I clicked on the 'Upload Multiple files Now' button.
     
    I did all the deployment steps that mentioned in your deployment document.
     
    Since it was not working I tried adding the tags which I found in the sample web.config file, I have added the System.Web.Extensions.dll and AjaxUploader.lic files too. Also I have added the SampleUtill.cs file since it is refering in page.
     
    Following is the structure of my web.config file:
     
    <configuration>
      <system.web>
        <httpRuntime maxRequestLength="2000000"/>
          <pages>
            <controls>
       <add namespace="CuteWebUI" assembly="CuteWebUI.AjaxUploader" tagPrefix="CuteWebUI"/>
       <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </controls>
            <namespaces>
              <add namespace="System.Collections.Generic"/>
              <add namespace="System.IO"/>
              <add namespace="System.Data"/>
              <add namespace="System.Data.SqlClient"/>
            </namespaces>
          </pages>
          <!-- set debugmode to false for running application -->
          <compilation debug="true" />
          <trace enabled='false' localOnly='true' pageOutput='true' requestLimit='20' traceMode='SortByTime'/>
          <customErrors mode='RemoteOnly' defaultRedirect='Public/Error.aspx'>
            <error statusCode="404" redirect="<page>.aspx"/>
          </customErrors>
          <authorization>
            <allow users ="*" />
          </authorization>
          <authentication mode="Forms">
            <forms loginUrl="<path>.aspx" />
          </authentication>
          <sessionState mode='InProc' timeout='30' />
          <browserCaps>
            tagwriter=System.Web.UI.HtmlTextWriter
          </browserCaps>
          <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="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
             <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
          </httpModules>
          </system.web>
     
          <location path="....">
            <system.web>
              <authorization>
                <deny users="?" />
              </authorization>
            </system.web>
          </location>
         
          <appSettings>
            <add key="CuteWebUI.AjaxUploader.UploadSpeedKB" value="20" />
          </appSettings>
    </configuration>

    Page contains the same content in the sample page in multiple-files-upload.aspx.
     
    Please help me. Very urgent.
     
    Thanks
  •  12-03-2008, 3:55 PM 46528 in reply to 46502

    Re: Clicking on the Upload button gives 'Object Expected' error

    1. Do you have problems with this example?
     
     
     
    2. Do you have problems with the examples included in the download package?
     
    3. When did you download the control?
     
     

    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

  •  12-03-2008, 4:11 PM 46531 in reply to 46502

    Re: Clicking on the Upload button gives 'Object Expected' error

    Hi elantra,
     
    Do you have same issue on our online demo?
     
    Only happen in ie8 and firefox3.04? work in another browser of your pc?
     
    Is your web site online? If so, please post the URL of you web site here.
     
    DO you test our example local? Is works?
     
     
    Regards,
     
    Ken
  •  12-03-2008, 10:54 PM 46547 in reply to 46531

    Re: Clicking on the Upload button gives 'Object Expected' error

    Hi,
     
    Thanks for the reply. Your online demo is working fine in all the browsers.
     
    I don't think it is a problem with the browsers. I have tried this in my local only.
     
    I have tried this by including your test page in my application.
     
    I am new to Ajax and my application is not an Ajax enabled website application. Actually my application was developed in .NET framework 1.1 and we have migrated to framework 3.5 recently only without making much differences.
     
    We are planning to add Ajax to our application. Please let us know if this could be a reason why the tool is not working for me.
     
    I would also like to know how we can include Ajax to our existing application to get other Ajax facilities? Should I need to install AjaxToolKit for this?
     
    If this works fine we will buy this tool.
     
    Thanks
  •  12-03-2008, 11:04 PM 46548 in reply to 46528

    Re: Clicking on the Upload button gives 'Object Expected' error

    Hi,
     
    Your example demos are working fine.
     
    From the download package I have tken the sample page and included in our application. Is there anything wrong in my web.config? Or anything more I have to include in my bin folder or something? Your deployment document tells only two steps and I have done more than that? Is it because our application is not Ajax enabled?
     
    I have downloded the tool last day only 3rd December 2008.
     
    Thanks
  •  12-04-2008, 9:44 AM 46562 in reply to 46548

    Re: Clicking on the Upload button gives 'Object Expected' error

    >> it because our application is not Ajax enabled?
     
    This issue is not related to ajax at all.
     
     
    Can you try the following code?
     
    <%@ Page language="c#"%>
    <%@ Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI" %>
    <html>
    <head>
    </head>
    <body>
        <form id="Form1" method="post" runat="server">
     <CuteWebUI:Uploader runat="server" ID="Uploader1">
     </CuteWebUI:Uploader> 
        </form>
    </body>
    </html>
     
    Keep me posted

    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