CuteWebUI_AjaxUploader_Initialize is not defined

Last post 06-10-2010, 11:19 AM by debdba. 3 replies.
Sort Posts: Previous Next
  •  06-04-2010, 4:14 PM 61582

    CuteWebUI_AjaxUploader_Initialize is not defined

    Got everything working fine on my //localhost/ testing but when I uploaded my page to our source control and other developers downloaded it, they're getting the above Javascript error.  Also getting same error on our Staging site.  On the Staging site, I realized that the web.config wasn't updated to reflect the new stuff I had to add to our //localhost web.config.  So that could be causing the error there.  But other developers have the web.config updates when they downloaded the updates from source control and still not working.
     
    I can see the call to CuteWebUI_AjaxUploader_Initialize in the page source.  It's in the code generated by this line in my .ascx file:
     
    <CuteWebUI:Uploader runat="server" ID="Uploader1" InsertButtonID="UploadImage"
        CancelButtonID="CancelUpload" CancelAllMsg=""
        tempdirectory="~/UploaderTemp"
        onUploadCompleted="Uploader1_UploadCompleted"
        onfileuploaded="Uploader1_FileUploaded"  >
        <ValidateOption AllowedFileExtensions="jpeg,jpg,gif,png" MaxSizeKB="1024" />
    </CuteWebUI:Uploader>
    Thanks for any help and advice.
    Debbie
  •  06-04-2010, 6:03 PM 61590 in reply to 61582

    Re: CuteWebUI_AjaxUploader_Initialize is not defined

    Debbie,
     
    Can you create a testing aspx page and run the following code on your server?
     
    <%@ 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" MultipleFilesUpload="true" ID="Uploader1">
     </CuteWebUI:Uploader> 
     <br><br><br>
     <%=Uploader1.GetBrowserType() + ":" + Uploader1.GetBrowserVersion()%>
     <hr/>UserAgent: <%=Context.Request.UserAgent%>  
        </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

  •  06-10-2010, 10:10 AM 61664 in reply to 61590

    Re: CuteWebUI_AjaxUploader_Initialize is not defined

    Thanks.  IT says "UploadModule not installed into web.config."
     
    As far as I know the dll is copied over as is the license file and the web.config is updated to include the following lines:
     
        <appSettings>
           <!-- AjaxUploader Settings -->
           <add key="AjaxUploaderLicense" value="~/Resource/Licenses/AjaxUploader.lic" />
           <add key="CuteWebUI.AjaxUploader.UploadSpeedKB" value="100" />
    and 
     
       <system.webServer>
        <modules>
          <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
    What have I left out?
  •  06-10-2010, 11:19 AM 61666 in reply to 61664

    Re: CuteWebUI_AjaxUploader_Initialize is not defined

    I got it.  I read in another forum that you can place the line of code:
     
          <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
     
    in BOTH places of the web.config to be able to handle all the different IIS environments.  That did the trick.
     
    Thanks.
    Problem solved!!
View as RSS news feed in XML