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. Class

Class

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.
  • N Offline
    N Offline
    netJP12L
    wrote on last edited by
    #1

    I have created a class and if I were to put the class under the App_code folder then I don't get any error message but i put in one my own created folder then it says Compiler Error Message: CS0246: The type or namespace name 'ClassRoomClass' could not be found (are you missing a using directive or an assembly reference?) What could i do to put the class under my own created folder folder? thanks

    T M 2 Replies Last reply
    0
    • N netJP12L

      I have created a class and if I were to put the class under the App_code folder then I don't get any error message but i put in one my own created folder then it says Compiler Error Message: CS0246: The type or namespace name 'ClassRoomClass' could not be found (are you missing a using directive or an assembly reference?) What could i do to put the class under my own created folder folder? thanks

      T Offline
      T Offline
      thatraja
      wrote on last edited by
      #2

      Check the reference & namespace. For your information Check this PRB: Compiler Error CS0246: The Type or Namespace Name Could Not be Found[^]

      thatraja


      **My Tip/Tricks
      My Dad had a Heart Attack on this day so don't...
      **

      1 Reply Last reply
      0
      • N netJP12L

        I have created a class and if I were to put the class under the App_code folder then I don't get any error message but i put in one my own created folder then it says Compiler Error Message: CS0246: The type or namespace name 'ClassRoomClass' could not be found (are you missing a using directive or an assembly reference?) What could i do to put the class under my own created folder folder? thanks

        M Offline
        M Offline
        Morgs Morgan
        wrote on last edited by
        #3

        Hi, Depending on your Visual Studio settings, when you create a new file/class in App_Code its "Build Action" is set to "Content" so you never get to see any errors in that file. To see any errors (if any!) right-click the file and select "Properties" (or Alt-Enter). Change your "Build Action" from "Content" to "Complie". Use the link in the above answer to help with References/Namespaces GudLucK

        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