I have added a custom class to a Visual Studio solution. The solution has a number of features that are deployed and also has a aspx page that is deployed to the _layouts folder. In the Visual Studio project I can use the custom class in other .cs classes without referencing the namespace. But in the aspx page I cannot use a "using" statement to include my assembly namespace.
In the ASPX page I need to use/reference the code in my custom class as follows:
MyCustomClass CustomClass = new MyCustomClass();
When I import the namespace as follows in the ASPX page I get an error:
<%@ Import Namespace="MY.SOLUTION" %>
saying that the namespace cannot be imported.
How should I reference a custom class in a custom SharePoint aspx page?