I'm trying to use a MasterType TypeName to access a class with master pages. This works when I'm using .NET 2.0, VS 2005, and C#. When I try this using .NET 3.5, VS 2008 and C# I get the error:
The type or namespace name 'classA' could not be found (are you missing a using directive or an assembly reference?) and it is pointing to the Default.aspx.designer.cs
In the default.aspx I have:
<%@ Page Language="C#" MasterPageFile="...
<%@ MasterType TypeName="classA" %>
I have added a folder App_Code to my project and in that folder I have a class file "classA.cs" that contains:
public class classA : System.Web.UI.MasterPage
The main difference that I see from where it works and where it doesn't work is that where it doesn't work it uses the namespace called Project.
So I figure my problem is in the including the class classA in the namespace or properly including the namespace and / or App_Code directory in the MasterType TypeName which I don't seem to be able to figure out.
Does anyone know what I may be doing wrong?
View Complete Post