Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. type does not contain a definition for Identifier

type does not contain a definition for Identifier

Scheduled Pinned Locked Moved ASP.NET
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nilam2477
    wrote on last edited by
    #1

    I have a solution containing about 5 projects. One of these is "CommonClass" 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.CommonClass.User' does not contain a definition for 'ReportName' How can i fix this error? I'm re-sending this message as it is very urgent to find the solution. YOur help is really appreciated

    C Y 2 Replies Last reply
    0
    • N nilam2477

      I have a solution containing about 5 projects. One of these is "CommonClass" 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.CommonClass.User' does not contain a definition for 'ReportName' How can i fix this error? I'm re-sending this message as it is very urgent to find the solution. YOur help is really appreciated

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      nilam2477 wrote:

      it is very urgent to find the solution

      So, you are suggesting that other people's problems aren't urgent?

      nilam2477 wrote:

      'Project.CommonClass.User' does not contain a definition for 'ReportName'

      Is the class/method exposed outside the assembly? Is it public?

      *Developer Day Scotland - Free community conference Delegate Registration Open

      1 Reply Last reply
      0
      • N nilam2477

        I have a solution containing about 5 projects. One of these is "CommonClass" 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.CommonClass.User' does not contain a definition for 'ReportName' How can i fix this error? I'm re-sending this message as it is very urgent to find the solution. YOur help is really appreciated

        Y Offline
        Y Offline
        Yusuf
        wrote on last edited by
        #3

        nilam2477 wrote:

        I'm re-sending this message as it is very urgent

        well, not to me.

        nilam2477 wrote:

        YOur help is really appreciated

        well, - Did you reference the assembly? - Did you use the right namespace?

        Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups