Type does not contain a definition for identifier error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nilam2477
    New Member
    • Feb 2008
    • 38

    Type does not contain a definition for identifier error

    I have a solution containing about 5 projects. One of these is "CommonClas s" witch contains a class User with a public property ReportName. In my web site i check this property on an user object (if (usr.ReportName ) ...) Intellisens works on the property, and when i right click and "go to definition" i go to the correct file and definiton. However when i build i get the following error:

    'Project.Common Class.User' does not contain a definition for 'ReportName'

    How can i fix this error?
    Thanks
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Is your Common Class and all other classes in the same namespace?

    Comment

    Working...