Error: the target principal name is incorrect, while using Active Directory Web services (ADWS) GetADGroupMember webmethod RRS feed

  • Question

  • Hi,

    I am using Active directory web services and I have successfully added the service reference and the client appconfig is configured.

    Now I get the error "the target principal name is incorrect" when I execute the following code. (The CN, OU DC sequence are correct I verified with dsa.config)


                ADWS.AccountManagementClient c = new ADWS.AccountManagementClient();

                ADWS.ActiveDirectoryPrincipal[] objarr = c.GetADGroupMember("service.sanctuarygroup.org:9389", "CN=<>,OU=<>,OU=<>,DC=<>,DC=<>,DC=<>", "DC=<>,DC=<>,DC=<>", true);
                foreach (ADWS.ActiveDirectoryPrincipal obj in objarr)


    any ideas why this happens and how to solve this


    Thanks in advance


    Tuesday, August 21, 2012 3:55 PM

All replies

  • Hi Surya 1982,

    Can you share the more details of the code how you created the service reference...

    Thanks in advance

    Thursday, April 27, 2017 1:11 AM