asp.net - Master page gives error -


i using vs2008 asp.net apps.

my solution explorer has hierarchy this:

enter image description here

the start-up page, default.aspx, displays login form. when press login button, page name, selectcompany, should open. selectcompany web content form master page master1.master. not opening, instead getting error:

parser error description: error occurred during parsing of resource required service request. please review following specific parse error details , modify source file appropriately.      parser error message: not load type 'flexstock.forms.master1'.      source error:      line 1:  <%@ master language="c#" autoeventwireup="true" codebehind="~/forms/selectcompany.aspx" inherits="flexstock.forms.master1" %>     line 2:       line 3:  <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">       source file: /forms/master1.master    line: 1  

the first line of master1.master this:

<%@ master language="c#" autoeventwireup="true" codebehind="master1.master.cs" inherits="flexstock.forms.master1" %> 

and first line of web content form, selectcompany.aspx, this:

<%@ page title="" language="c#" masterpagefile="~/forms/master1.master" autoeventwireup="true" codebehind="selectcompany.aspx.cs" inherits="flexstock.forms.selectcompany" %> 

i not following problem.

make sure class-name stated in inhertis-part of page-directive matches name of class in code-behind file.

master1.master:

<%@ master language="c#" autoeventwireup="true" codebehind="master1.master.cs" inherits="flexstock.forms.master1" %> 

master1.master.cs:

namespace flexstock.forms {     public class master1 {         /* ... */ 

Comments