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

后端 未结 9 1303
一整个雨季
一整个雨季 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:58

    This is a very old thread but just to provide a complete answer for the sake of posterity ;)

    This issue occurs if the project is missing a reference to the .Net Component System.DirectoryServices

    Adding this reference in the usual manner prefered by you will resolve the issue.

提交回复
热议问题