System.DirectoryServices is not recognised in the namespace ‘System’ August 26, 2023 by Tarik Right click on References under your solution. Select Add Reference. The reference can be found under the Framework Assemblies list. Select System.DirectoryServices and click Add.