Unknown server tag 'DotNetGallery:gallerybrowser'.

Last post 08-26-2010, 2:16 PM by Eric. 3 replies.
Sort Posts: Previous Next
  •  08-25-2010, 7:22 PM 63619

    Unknown server tag 'DotNetGallery:gallerybrowser'.

    I'm getting an unknown server tag error. I have .net 4.0 on my local host and it works fine, but on my webhost they have 2.0
     
     I have:
    <%@ Register TagPrefix="DotNetGallery" Namespace="DotNetGallery" Assembly="DotNetGallery" %>
     at the top of the page and
     
     <dotnetgallery:gallerybrowser runat="server" id="GalleryBrowser1" Width="675" Height="430" />
     
    In the page.
     
    I have the dll in the BIN folder. It works fine on my local host, but not when I push the files to my webhost.
     
    Any help? Thanks.
  •  08-26-2010, 1:50 AM 63627 in reply to 63619

    Re: Unknown server tag 'DotNetGallery:gallerybrowser'.

    Hi Geograd7,
     
    Add Reference to file "DotnetGallery.dll" in your project and try again.
     
    Regards,
     
    ken
  •  08-26-2010, 1:21 PM 63653 in reply to 63627

    Re: Unknown server tag 'DotNetGallery:gallerybrowser'.

    Hi Kenneth,
     
    This is a .net website not a project.
     
    Thanks,
     
    Richard
  •  08-26-2010, 2:16 PM 63657 in reply to 63619

    Re: Unknown server tag 'DotNetGallery:gallerybrowser'.

    Please save the following content to test.aspx and check whether this issue is thrown in this example:
    <%@ Page language="c#" AutoEventWireup="false" %>
    <%@ Register TagPrefix="DotNetGallery" Namespace="DotNetGallery" Assembly="DotNetGallery" %>
    <script runat="server">
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    // if(Context.User.Identity.Name=="Admin")
    // {
      GalleryBrowser1.AllowEdit=true;
      GalleryBrowser1.AllowPostComment=true;
      GalleryBrowser1.AllowShowComment=true;
    // }
    }
    </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>   
     </head>
     <body>
      <form id="form1" runat="server">   
         <%if(GalleryBrowser1.AllowEdit){%>
          <a href="#" onclick="thegallerybrowser.ShowEditor();return false;">Admin Console</a> |
         <%}%>
          <a href="#" onclick="thegallerybrowser.ShowSlider();return false;">Start slide show</a>
         </div>
         <Dotnetgallery:gallerybrowser runat="server" id="GalleryBrowser1" Width="780" Height="400" />    
      </form>
     </body>
    </html>
    Regards,
    Eric
View as RSS news feed in XML