Import is not working

6
Imports System.DirectoryServices
  

ERROR MESSAGE: "Warning 1 Namespace or type specified in the Imports 'System.Directory.Services' does not contain any public member or can not be found. Make sure the namespace is defined and contains at least one public

Why is this happening and how do I resolve it?

    
asked by anonymous 17.01.2015 / 21:20

1 answer

6

You will have to add a reference to the project. Putting it in the code you want to import does not indicate where the assembly contains this namespace .

You have documentation that talks about this error .

Basic instructions for Visual Studio:

  • Open Solution Explorer.
  • Right click mouse click on your project and choose Add Reference...
  • On the .NET tab, look for the assembly with the same name as the namespace you want to import and click on OK .

It's not complicated to do this but if you're having trouble even finding out the name of the language you're using it can become a very hefty burden to sort this out.

    
17.01.2015 / 21:44