My ASP.NET Web Application cannot 'find' any of my classes in the App_Code folder .. ??
        Posted  
        
            by Pure.Krome
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Pure.Krome
        
        
        
        Published on 2010-03-30T06:55:29Z
        Indexed on 
            2010/03/30
            7:13 UTC
        
        
        Read the original article
        Hit count: 413
        
Hi folks,
I'm trying to make a new asp.net web application .. so I'm copying my files from one site to the new one, in the same solution.
Now, any of my classes in the App_Code directory ... they are not getting 'picked up' by the rest of my project. 
For example...
\_
\_App_Code
  |_ BaseMasterPage.cs  (please don't ask why this is in here..)
  |_ Utility.cs
  |_ FooBar.cs
\_MasterPages
  |_ Default.master.cs
// This file errors ;(
namespace Foo.WebSite.MasterPages
{
    public partial class Default_master : App_Code.BaseMasterPage
    { ... }
}
namespace Foo.WebSite.App_Code
{
    public class BaseMasterPage : MasterPage
    { .. }
}
It cannot find the App_Code.BaseMasterPage (compilation and intellisence error) in the Default.master.cs page.
Can someone please help? this is killing me :(
© Stack Overflow or respective owner