Author: bbg | Posted on: 9/7/2010 7:24:50 PM | Views : 334

Hello,
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:
Using ...
Namespace Project.App_Code
{
    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 namesp ...

Go to the complete details ...