I have a asp.net Web Site Project that I am migrating to a Web Application Project. Most of the forms in this project are derived from a base class, but for some reason after the migration, the base class is not being found. My base class is in the following folder: App_Code/BaseClasses/BasePage.cs
and is defined as follows:
//more stuff above
using System.Web;
public class BasePage : Page
{
public BasePage()
{
}
protected override void OnInit(EventArgs e)
{
//whatever
}
//some other stuff
}
And my forms are in a variety of folder and they use the base class like so:
//More stuff above
using System.Web;
//Derived from base page
public partial class Reports_Uploads : BasePage
{
//a bunch of stuff
}
Any time I try to derive from the base page I get the following error:
Error 166 The type or namespace name 'BasePage' could not be found (are you missing a using directive or an assembly reference?)
I tried wrapping both in the same namespace, but that didn't make any difference. There are not any errors on BasePage
when I attempt to compile. Can anyone see why this would be happening?