Page 1 of 1

missing assembly reference - any ideas? Resolved

Posted: Tue May 06, 2008 12:11 pm
by bobr2k
I'd swear I clicked on categories a couple days ago and everything worked great but this morning I get this:

[[ConLib:CategoryGridPage]] d:\Websites\{store name}\ConLib\CategoryGridPage.ascx.cs(28): error CS0234: The type or namespace name 'conlib_categorysearchsidebar_ascx' does not exist in the namespace 'ASP' (are you missing an assembly reference?)

I see CategorySearchSidebar.ascx and CategorySearchSidebar.ascx.cs in the /conlib directory so I'm not sure why the message is occuring.

Could someone please give me a hint or two about what might be going on?

Re: missing assembly reference - any ideas?

Posted: Tue May 06, 2008 12:35 pm
by jmestep
I don't have an error to check against, but should there be a dot before .aspx instead of an _?
conlib_categorysearchsidebar_ascx

Re: missing assembly reference - any ideas?

Posted: Tue May 06, 2008 1:14 pm
by bobr2k
jmestep wrote:I don't have an error to check against, but should there be a dot before .aspx instead of an _?
conlib_categorysearchsidebar_ascx
I compared our installed version to the original download and they're identical except for a breadcrumbs line which was removed ... this error message apparently comes from a statement in /ConLib/CategoryGridPage.ascx.cs
public partial class ConLib_CategoryGridPage : System.Web.UI.UserControl
{
private int _Cols = 3;
private int _Rows = 5;
.... {lines deleted}
private int _LastPageIndex;
ASP.conlib_categorysearchsidebar_ascx searchBar = null; <=====
.... {lines deleted}

Re: missing assembly reference - any ideas?

Posted: Tue May 06, 2008 1:34 pm
by bobr2k
Got it! Our stylist had accidentally removed the register statement from the ascx file
<%@ Register Src="~/ConLib/CategorySearchSidebar.ascx" TagName="CategorySearchSidebar" TagPrefix="uc" %>
.. I put that back and everything is great. Thanks Judy, your response got me thinking about checking something else, one thing led to another ... :mrgreen: