The type or namespace name 'DirectoryServices' does not exist RRS feed

  • Question

  • I am using the System.DirectoryServices in my user control web part but when I drag and
    drop the web part on page it gives the following error :

    its dependencies. The type or namespace name 'DirectoryServices' does not
    exist in the namespace 'System' (are you missing an assembly reference?)”

    The System.DirectoryServices is in GAC.

    How to solve it ?
    Wednesday, September 28, 2011 9:03 AM

All replies

  • In Visual Studio click on References->Add References and choose DirectoryServices from the .Net list 
    Wednesday, September 28, 2011 9:36 AM
  • Hai

    Already i added directory service dll .But still i am getting the same error

    Wednesday, September 28, 2011 11:01 AM
  • Hai

     I am using this both  System.DirectoryService  version and

    System.directoryService.AccountManagement version . in my user control webpart.

    These versions are compatible or not?


    Thursday, September 29, 2011 6:40 AM