Unknown Server Tag </n2:Box>

Topics: Developer Forum, Project Management Forum, User Forum
Mar 9, 2009 at 5:57 PM
I get the following "Unknown server tag" error:

Regel 2: <div class="uc"> Regel 3: <n2:H4 ID="hsm" runat="server" /> Regel 4: <n2:Box ID="bsm" runat="server"> Regel 5: <n2:Menu ID="m" BranchMode="false" runat="server" CssClass="subMenu menu" SkinID="subMenu" StartLevel="2" /> Regel 6: </n2:Box>

from Templates/UI/Layouts/SubMenu.ascx

I used the C# example but the Templates folder is in a different directory than the website. It put it in another project and added a reference to that project from my website.

Any ideas?
Mar 9, 2009 at 8:58 PM
Does your web config contain anything like this in system.web?

              <add tagPrefix="n2" namespace="N2.Templates.Web.UI.WebControls" assembly="N2.Templates" />

Mar 10, 2009 at 11:43 AM
That helped. I added the following line and everything seems to work now. (Changed assembly name)
<add tagPrefix="n2" namespace="N2.Templates.Web.UI.WebControls" assembly="N2.Informatica" />