Unable to cast object of type 'ASP.ProjectName_master' to type 'PrijectName.master'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hicham Belkhadi
    New Member
    • Oct 2010
    • 1

    #1

    Unable to cast object of type 'ASP.ProjectName_master' to type 'PrijectName.master'

    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.
    Code:
     public ProjectName.MasterPage Layout
            {
                get
                {
                    return (ProjectName.MasterPage)this.Master;
                }
            }
            #endregion
    I appreciate any idea/suggestions.
    Thanks.
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    #2
    Refer this link.You may find something helpful
    A broad category of Microsoft tools, languages, and frameworks for software development. Designed to support developers in building, debugging, and deploying applications across various platforms.

    Comment

    Working...