Inside my page, I have the following:
In my case the reason was the Resharper 7.1 added incorrect @Register directive at the top of aspx - instead of this desired row:
<%@ Register Src="~/Controls/Hello/Hello.ascx" TagName="Hello" TagPrefix="p" %>
i got wrong one:
<%@ Register TagPrefix="p" Namespace="MyNamespace.WebApp.Controls" Assembly="MyApp.Web" %>
Well, I've found the problem(s):
User Controls, as opposed to Custom Controls must be registered one-by-one in the web.config file. Do this:
<add tagPrefix="local" tagName="KeywordSelector" src="~/KeywordSelector.ascx" />
instead of:
<add tagPrefix="local" namespace="Keywords" assembly="Keywords" />
You should never place a WebControl
in the same directory as the Control
that is using it. This is downright silly. Read about it here.
Thanks for the help. Now if only I could mark my own answer as the answer...