0 votes


I'm trying to connect to remote Adaxes service from C# program.
Using sample code from "Writing ADSI scripts" page in the docs.

Added DLLs, here is my code:

static void Main(string[] args)
            AdmNamespace adsNS = new AdmNamespace();
            IAdmService admService = adsNS.GetServiceDirectly("");

getting error:
System.Configuration.ConfigurationErrorsException: The configuration file is missing.
error line: AdmNamespace adsNS = new AdmNamespace();

I'm not sure which config file it's asking for.

by (100 points)

1 Answer

0 votes
by (267k points)
selected by
Best answer


The error occurs, because you do not have Adaxes ADSI Provider installed on the computer from which you are trying to connect to Adaxes service. For information on how to install it, have a look at the following article in our SDK: http://www.adaxes.com/sdk/?HowDoI.Insta ... vider.html.

Related questions

0 votes
1 answer

Dear Support, can you please clarify - to call adaxes custom commands from "other" machines via following code - Adaxes PS module needs to be installed or ... -Object "Softerra.Adaxes.Adsi.AdmNamespace" $admService = $admNS.GetServiceDirectly("xxx") Thanks!

asked Oct 9, 2019 by Dmytro.Rudyi (920 points)
0 votes
1 answer

We would like to be able to export logs from the Adaxes service? Is there a way to do this either through the service or reporting?

asked Oct 31, 2022 by scoutcor (120 points)
0 votes
0 answers

Hi Forum, I wan't to connect to the Adaxes Service from outside the Domain. So i try to connect this way: # Connect to the Adaxes service $admNS = New-Object "Softerra ... can i connect to the Adaxes Service from a host outside the domain? Thanks for your help

asked Nov 6, 2015 by esoAdxAdmin (650 points)
0 votes
1 answer

Hello, We have an exchange server in a separate forest. When we create the mailbox using a business rule after user creation, the mailbox creates ok. After the user ... multi-forest environment and it made no difference. Thanks for any help you can provide.

asked Nov 2, 2018 by Jasonmh (540 points)
0 votes
2 answers

Dear Support, can you advise if it's possible to connect to Adaxes from PowerBI? To have access (read) for the Adaxes custom attributes? Thank you!

asked May 13, 2020 by Dmytro.Rudyi (920 points)
3,293 questions
2,991 answers
544,159 users