Unable to upload

Last post 05-20-2011, 8:35 AM by TorskTallin. 4 replies.
Sort Posts: Previous Next
  •  05-16-2011, 4:00 AM 67583

    Unable to upload

    Hello,
     
    When I try to upload images by clicking the Upload images button nothing happens.
    The page is loaded with the following error:

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MDDR; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Timestamp: Mon, 16 May 2011 08:59:56 UTC


    Message: Object expected
    Line: 120
    Char: 29
    Code: 0
    URI: ..../galleri-edit.aspx

     What can be the cause?
     
    Thanks!
  •  05-16-2011, 10:14 AM 67587 in reply to 67583

    Re: Unable to upload

    Dear TorskTallin,
     
    http://cutesoft.net/ASP.NET+Image+Gallery/Deployment.aspx , please check whether you followed step 3.
     
    Thanks for asking
  •  05-18-2011, 2:18 AM 67603 in reply to 67587

    Re: Unable to upload

    Hi Eric,
     
    Thank you for your reply!
    I have this in the web.config:
    <configuration>
    <
    appSettings>
    <!--
    <add key="DotNetGalleryClient" value="~/CuteSoft_Client/Gallery/" /> -->
    <!--
    <add key="DotNetGalleryFolder" value="~/GalleryFiles/" /> -->
    <!--
    You can set a low upload speed to test the progress bar. -->
    <!--
    <add key="DotNetGallery.AjaxUploader.UploadSpeedKB" value="200" /> -->
    </
    appSettings>
    <
    system.web>
    <
    httpRuntime maxRequestLength="2000000" />
    <
    trust level="Medium" />
    <
    compilation defaultLanguage="c#" debug="true" />
    <
    httpModules>
    <
    add name="DotNetGallery.UploadModule" type="DotNetGallery.UploadModule,DotNetGallery" />
    </
    httpModules>
    </
    system.web>
    </
    configuration>
     
    Still I have no luck in uploading...
    Any other ideas/suggestions?
    Thanks!
  •  05-18-2011, 10:09 PM 67613 in reply to 67603

    Re: Unable to upload

    Hi TorskTallin,
     
    Can you create a test page by the code below and post your test page url? I will check it and get back to you as soon as possible.
     
    <%@ Page Language="C#" %>

    <%@ Register TagPrefix="DotNetGallery" Namespace="DotNetGallery" Assembly="DotNetGallery" %>

    <script runat="server">
        protected override void OnLoad(EventArgs e)
        {

            GalleryBrowser1.AllowEdit = true;
            GalleryBrowser1.AllowPostComment = true;
            GalleryBrowser1.AllowShowComment = true;
            base.OnLoad(e);
        }
     
    </script>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>DotNetGallery</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <a href="#" onclick="thegallerybrowser.ShowEditor();return false;">Admin Console</a>
            <DotNetGallery:GalleryBrowser runat="server" ID="GalleryBrowser1" Width="720" Height="430"
                Layout="SlideShow" />
        </form>
    </body>
    </html>
     
    Regards,
     
    Ken
  •  05-20-2011, 8:35 AM 67635 in reply to 67613

    Re: Unable to upload

    Hi!
     
    There seems to be a problem using a master page. I have no problem running it as stand-alone. Never mind - since the upload is going to be on a password protected admin page there is no need for the master page.
    I need this to work now, so I'll settle for that solution.

    I have a question about categories - but I'll add that as a new topic.
     
    Thanks!
View as RSS news feed in XML