I'm not sure why this isn't working, but, when I build my ASP.NET
WebSite, I get the following error when the referenced namespace is in a different file than the referencing class. When the two classes are in the same file, everything builds fine.
Error 2 The type or namespace name 'someSpace' could not be found (are you missing a using directive or an assembly reference?) CaseEvaluationPanel.ascx.cs 26 3 ExaminerGradeSheet
Default.aspx.cs
namespace someSpace
{
public class EmptyClass : System.Web.UI.Page
{
public int someInt;
}
}
CaseEvaluationPanel.ascx.cs
public class referencingClass : System.Web.UI.UserControl
{
public void someMethod()
{
someSpace.EmptyClass anEmptyClass = new someSpace.EmptyClass();
int someInt = anEmptyClass.someInt;
}
}