Live Chat Icon For mobile
Live Chat Icon

Why do I get the Compiler Error Message: ‘CS0246: The type or namespace name ‘…’ could not be found (are you missing a using directive or an assembly reference?) ‘

Platform: ASP.NET| Category: Error Handling

This problem typically comes when:

  • You do not have class with that name in your project
  • You add the class later on and run the project without compiling
  • You have the class but you do not specify the namespace via Imports or using keyword

Share with

Share on twitter
Share on facebook
Share on linkedin