Unrecognized Tag Prefix or Device Filter in Visual Studio 2008
asp.net, c#, visual-studio-2008
Solution
No idea why this works but it does. When I change namespace of one of the listview control to MyProject.UI.ControlLibrary from MyProject.UI.ControlLibrary.Web and repoint the <% register then it works fine.
Problem
I have a set of web controls that are in an assembly referenced by a website. I can build and run everything without a problem, however when I look at an aspx page where the controls are being used I get a green underline beneath the Tag Prefix. ``` <%@ Register Assembly="MyProject.UI.ControlLibrary" Namespace="MyProject.UI.ControlLibrary.Web" TagPrefix="ControlLibrary" %> <asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" Runat="Server"> <ControlLibrary:ListView ID="List" runat="server"/> </asp:Content> ``` So in this example I'd get a green underline under ControlLibrary and when I hover over it it says Unrecognized Tag Prefix or Device Filter 'ControlLibrary' The code was written in a previous version of Visual Studio, I have another assembly also containing Web controls and that seems to work fine. Any ideas as to what could be causing the problem?