Microsoft JScript runtime error: Object expected

Last post 04-21-2008, 10:39 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  04-21-2008, 3:05 AM 39540

    Microsoft JScript runtime error: Object expected

    When I run a small test page using VS2008, the Ajax Uploader works perfectly.  However, when I run it without the VS2008 web server (i.e. when I run it using IIS 7 on my local Vista Business machine) I receive the error shown below:

    1. IE Popup:  "Microsoft JScript runtime error: Object expected"
    2. FF Firebug:  "CuteWebUI_AjaxUploader_Initialize is not defined"

    In the script debugger, the following is displayed in what appears to be script injected by the Uploader control:
     
    onload="this.style.display="none" ;  CuteWebUI_AjaxUploader_Initialize(this.id);"

    I don't have any idea how to troubleshoot this.
     
    I also had an error message stating the the "UploadModule was not loaded in web.config" when running from IIS7.
    It appears that I need to add the module "CuteWebUI.UploadModule" using IIS7's admin form.
     
    Also, it appears that I need to change the security permissions on the UploaderTemp folder.  What are the minimal permissions needed?
     
    Finally, in Firefox 2.0.0.14, when I click the Ajax Uploader button, the standard HttpInputFile control is displayed (IE7 works like your online demos).  Your documentations says that Uplevel browsers like Firefox should behave the same, but it seems like FF 2.0 is behaving like you describe a DownLevel browser would.   Can someone clarify expected behaviors.

    Do you have IIS7 docs?  Please solve my problems and I'll buy a license in a heartbeat.  I love this control, but I've spent many hours trying to overcome what appear to be simple issues.


    Thanks.

  •  04-21-2008, 10:39 AM 39561 in reply to 39540

    Re: Microsoft JScript runtime error: Object expected

    wwward,
     
    In IIS 7.0, the http modules should be moved to system.webServer section:

    <system.webServer>
    <modules>
          <add name="MagicAjaxModule" type="MagicAjax.MagicAjaxModule, MagicAjax"/>
          <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
    </modules>
    </system.webServer>
     
    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