Hello everybody,
I'm building a website in vs2010, i generate usercontrols (aspx and ascx pages), if i run the website i get the error : unable to cast object of type 'ASP.ProjectNam e_master' to type 'ProjectName.ma ster'
I have a folder 'App_Code' under my startproject, that's not a default asp folder any more i think since vs2005, is that maybe the problem?
Under the App_Code folder i have the master.cs file, in this file i get the error.
I appreciate any idea/suggestions.
Thanks.
I'm building a website in vs2010, i generate usercontrols (aspx and ascx pages), if i run the website i get the error : unable to cast object of type 'ASP.ProjectNam e_master' to type 'ProjectName.ma ster'
I have a folder 'App_Code' under my startproject, that's not a default asp folder any more i think since vs2005, is that maybe the problem?
Under the App_Code folder i have the master.cs file, in this file i get the error.
Code:
public ProjectName.MasterPage Layout
{
get
{
return (ProjectName.MasterPage)this.Master;
}
}
#endregion
Thanks.
Comment