System.DirectoryServices doesn’t contain any public member or cannot be found

Namespace or type specified in the Imports ‘System.DirectoryServices’ doesn’t contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn’t use any aliases.

Add a reference to the project under .NET tab to System.DirectoryServices

Leave a comment