Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. System.DirectoryServices.ActiveDirectory Missing

System.DirectoryServices.ActiveDirectory Missing

Scheduled Pinned Locked Moved C#
csharphelpdotnetvisual-studioalgorithms
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Toni78
    wrote on last edited by
    #1

    I have been trying all day to figure out why in one of my C# projects in Visual Studio 2013, .NET framework 4.5 I cannot find System.DirectoryServices.ActiveDirectory. I try to add it as a reference but it does appear in Reference Manager. I have been searching all day on how to resolve the issue and I cannot find an answer. I need some help please. I am out of options. The only thing I can guess is that using System.DirectoryServices.AccountManagement replaces System.DirectoryServices.ActiveDirectory.

    Time is the fire in which we burn.

    D L P 3 Replies Last reply
    0
    • T Toni78

      I have been trying all day to figure out why in one of my C# projects in Visual Studio 2013, .NET framework 4.5 I cannot find System.DirectoryServices.ActiveDirectory. I try to add it as a reference but it does appear in Reference Manager. I have been searching all day on how to resolve the issue and I cannot find an answer. I need some help please. I am out of options. The only thing I can guess is that using System.DirectoryServices.AccountManagement replaces System.DirectoryServices.ActiveDirectory.

      Time is the fire in which we burn.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Your post appears to be screwed up. You tried to add a reference and the .DLL does NOT show up? That's because it doesn't exist. On .NET 4.5, the available references are System.DirectoryServices.dll, System.DirectoryServices.AccountManagement.dll and System.DirectoryServices.Protocols.dll. I believe the one you're looking for is System.DirectoryServices.dll. It contains the NAMESPACE System.DirectoryServices.ActiveDirectory.

      A guide to posting questions on CodeProject

      Click this: Asking questions is a skill. Seriously, do it.
      Dave Kreskowiak

      T 1 Reply Last reply
      0
      • T Toni78

        I have been trying all day to figure out why in one of my C# projects in Visual Studio 2013, .NET framework 4.5 I cannot find System.DirectoryServices.ActiveDirectory. I try to add it as a reference but it does appear in Reference Manager. I have been searching all day on how to resolve the issue and I cannot find an answer. I need some help please. I am out of options. The only thing I can guess is that using System.DirectoryServices.AccountManagement replaces System.DirectoryServices.ActiveDirectory.

        Time is the fire in which we burn.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        I found the object browser in VisualStudio to be very helpful. I put System.DirectoryServices.ActiveDirectory in the search bar and get: namespace System.DirectoryServices.ActiveDirectory Member of System.DirectoryServices

        There are strangers on the Plain, Croaker

        T 1 Reply Last reply
        0
        • T Toni78

          I have been trying all day to figure out why in one of my C# projects in Visual Studio 2013, .NET framework 4.5 I cannot find System.DirectoryServices.ActiveDirectory. I try to add it as a reference but it does appear in Reference Manager. I have been searching all day on how to resolve the issue and I cannot find an answer. I need some help please. I am out of options. The only thing I can guess is that using System.DirectoryServices.AccountManagement replaces System.DirectoryServices.ActiveDirectory.

          Time is the fire in which we burn.

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          For an Active Directory utility I wrote, I have references to: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.DirectoryServices.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.DirectoryServices.AccountManagement.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.DirectoryServices.Protocols.dll

          T 1 Reply Last reply
          0
          • D Dave Kreskowiak

            Your post appears to be screwed up. You tried to add a reference and the .DLL does NOT show up? That's because it doesn't exist. On .NET 4.5, the available references are System.DirectoryServices.dll, System.DirectoryServices.AccountManagement.dll and System.DirectoryServices.Protocols.dll. I believe the one you're looking for is System.DirectoryServices.dll. It contains the NAMESPACE System.DirectoryServices.ActiveDirectory.

            A guide to posting questions on CodeProject

            Click this: Asking questions is a skill. Seriously, do it.
            Dave Kreskowiak

            T Offline
            T Offline
            Toni78
            wrote on last edited by
            #5

            You are correct. It is screwed up. I was trying to say "does NOT appear in Reference Manager". I tried adding System.DirectoryServices.dll and the namespace system.DirectoryServices.ActiveDirectory now appears. Thank you very much.

            Time is the fire in which we burn.

            1 Reply Last reply
            0
            • P PIEBALDconsult

              For an Active Directory utility I wrote, I have references to: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.DirectoryServices.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.DirectoryServices.AccountManagement.dll C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.DirectoryServices.Protocols.dll

              T Offline
              T Offline
              Toni78
              wrote on last edited by
              #6

              I managed to write what I needed with those references as well. Thank you for your reply.

              Time is the fire in which we burn.

              1 Reply Last reply
              0
              • L Lost User

                I found the object browser in VisualStudio to be very helpful. I put System.DirectoryServices.ActiveDirectory in the search bar and get: namespace System.DirectoryServices.ActiveDirectory Member of System.DirectoryServices

                There are strangers on the Plain, Croaker

                T Offline
                T Offline
                Toni78
                wrote on last edited by
                #7

                That is exactly what I tried and it did not work. In any case, the issue is resolved so thank you for your help.

                Time is the fire in which we burn.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups