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