I created a new sp2013 project and have an aspx page where I'm loading the user control called Test.ascx. The user control is created under /controltemplates under 15 hive.
The user control file structure is - /controltemplates/Test/Test.ascx
In my default.aspx I'm loading the user control with this path -
<%@ Register Src="~/Test/Test.ascx" TagName="TestUserControl" TagPrefix="Demo" %>
I get the error as : The referenced file '/Test/Test.ascx is not allowed on this page.
I added the folder under safe control in web.config and I did IIS reset but still get this error. Don't know what else can be done here