System.DirectoryServices is not recognised in the namespace 'System'

后端 未结 9 1402
一整个雨季
一整个雨季 2021-02-05 02:23

I\'m trying to use System.DirectoryServices in a web site project and I\'m getting this error:

The type or namespace name \'DirectoryServices

9条回答
  •  甜味超标
    2021-02-05 02:59

    On Solution Explorer right-click your project, then from the resulting menu, click on Add Reference, then under the .NET tab navigate to DirectoryServices.AccountManagement

提交回复
热议问题