the type or namespace 'DotNetGallery' could not be found in the global namespace

Last post 09-03-2010, 2:29 PM by Eric. 1 replies.
Sort Posts: Previous Next
  •  09-03-2010, 12:36 PM 63836

    the type or namespace 'DotNetGallery' could not be found in the global namespace

    Hello,
     
    I get the above message after my build works the first time.   I have the error on line 10...
     
    1. public partial class Photos {  
    2.       
    3.     /// <summary>  
    4.     /// dotnetgallery1 control.  
    5.     /// </summary>  
    6.     /// <remarks>  
    7.     /// Auto-generated field.  
    8.     /// To modify move field declaration from designer file to code-behind file.  
    9.     /// </remarks>  
    10.     protected global::DotNetGallery.gallerybrowser dotnetgallery1;  

     
    I am using VS 2010 and the 3.5 Framework.
     
    Thanks, John
     
  •  09-03-2010, 2:29 PM 63837 in reply to 63836

    Re: the type or namespace 'DotNetGallery' could not be found in the global namespace

    Dear ,
     
    Please double check deployment steps: http://cutesoft.net/ASP.NET+Image+Gallery/Deployment.aspx 
    The following is one runnable example, can you check whether this example works on your end? 
    <%@ Page language="c#" AutoEventWireup="false" %>
    <%@ Register TagPrefix="DotNetGallery" Namespace="DotNetGallery" Assembly="DotNetGallery" %>
    <script runat="server">
    protected override void OnInit(EventArgs e)
    {
     base.OnInit(e);
      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">   
        <div id="CommonBody" align="center">
         <div align="right" style="margin: 0 30px 5px 0">
         <%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" />
        </div>
      </form>
     </body>
    </html>
    Thanks for asking
View as RSS news feed in XML