I am trying to add a DnnDatePicker to my custom DotNetNuke module but I get a "Error Creating Control" error (unknown server tag dnn:DnnDatePicker) and the control is underlined as "Element DnnDatePicker is not a known element. This can occur if there is a compilation error in the website or the web.config file is missing".
My import statements:
<%@ Register Assembly="DotNetNuke.Web" Namespace="DotNetNuke.Web.UI.WebControls" TagPrefix="dnn" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/labelcontrol.ascx" %>
<div style="font-weight:bold" aria-haspopup="True" class="DatePickerText"></div>
<dnn:DnnDatePicker runat="server" ID="StartDatePicker" /></div>
I'm using asp.net 4.5 and DNN 7.2.2
Any ideas?