Master page inherits tag question

asp.net, master-pages

Solution

Name of your project (and maybe namespaces) conflicts with ASP.NET form authentification class name: `System.Web.Security.FormsAuthentication`. I think you are missing namespace name or reference.

Problem

Going through the microsoft authentication tutorial listed here they have you create a master page. Upon generation by Visual Studio the first list in the file looks like this: ``` <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="FormsAuthentication.Site" %> ``` The project is called FormAuthentication and the master page is named Site.Master. When running the project I get the error: ``` Compiler Error Message: CS0426: The type name 'Site' does not exist in the type 'System.Web.Security.FormsAuthentication' ``` and the line referenced looks like this, in an auto-generated file ``` Line 133: [TemplateContainer(typeof(FormsAuthentication.Site))] ``` Removing the "Inherits='FormsAuthentication.Site' " portion of that initial tag resolves the issue but I'm trying to understand what is happening here. What is actually going on here?

Original source