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. C:\Inetpub\wwwroot\WebApplication2\treebase.cs(150): The type or namespace name 'Category' could not be found (are you missing a using directive or an assembly reference?)

C:\Inetpub\wwwroot\WebApplication2\treebase.cs(150): The type or namespace name 'Category' could not be found (are you missing a using directive or an assembly reference?)

Scheduled Pinned Locked Moved ASP.NET
helpquestion
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.
  • S Offline
    S Offline
    sasire18
    wrote on last edited by
    #1

    hi I need help in almost all my cs files I am getting the following error:

    C:\Inetpub\wwwroot\WebApplication2\treebase.cs(150): The type or namespace name 'Category' could not be found (are you missing a using directive or an assembly reference?)

    Category, DefaultValue,Editor,DesignerSerializationVisibility,Browsable,HtmlTextWriter, IStateManager,StateBag,ParenthesizePropertyName,Control are coming i dont know the assembly reference for it It mainly occurs in this format

    [DefaultValue("")]
    [ParenthesizePropertyName(true)]
    [ResDescription("BaseID")]

    Can anyone help me in this regard sasi

    G I 2 Replies Last reply
    0
    • S sasire18

      hi I need help in almost all my cs files I am getting the following error:

      C:\Inetpub\wwwroot\WebApplication2\treebase.cs(150): The type or namespace name 'Category' could not be found (are you missing a using directive or an assembly reference?)

      Category, DefaultValue,Editor,DesignerSerializationVisibility,Browsable,HtmlTextWriter, IStateManager,StateBag,ParenthesizePropertyName,Control are coming i dont know the assembly reference for it It mainly occurs in this format

      [DefaultValue("")]
      [ParenthesizePropertyName(true)]
      [ResDescription("BaseID")]

      Can anyone help me in this regard sasi

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Look up the classes in the documentation[^], there you will se what namespace they belong to. After a while you will learn how the framework is organized, so that you'll know where many classes are. If you have a clue where the class might be, you can use the intellisense in Visual Studio. Start typing the namespace, and see if the class appears: System.Web.UI.C And you should see the Control class in the intellisense dropdown. --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • S sasire18

        hi I need help in almost all my cs files I am getting the following error:

        C:\Inetpub\wwwroot\WebApplication2\treebase.cs(150): The type or namespace name 'Category' could not be found (are you missing a using directive or an assembly reference?)

        Category, DefaultValue,Editor,DesignerSerializationVisibility,Browsable,HtmlTextWriter, IStateManager,StateBag,ParenthesizePropertyName,Control are coming i dont know the assembly reference for it It mainly occurs in this format

        [DefaultValue("")]
        [ParenthesizePropertyName(true)]
        [ResDescription("BaseID")]

        Can anyone help me in this regard sasi

        I Offline
        I Offline
        Ista
        wrote on last edited by
        #3

        you need to inherit from WebControl 1 line of code equals many bugs. So don't write any!!

        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