0 votes

Hi

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("10.64.3.41");
            Console.ReadKey();
        }

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.
V.

by (100 points)

1 Answer

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

Hello,

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 (850 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 (850 points)
0 votes
1 answer

I am trying to configure Adaxes to talk to my O365 Tenant. Following the guide here - https://www.adaxes.com/tutorials_Active ... ice365.htm - I am getting stuck on the ... the same rights that I have set on the service account) Is anybody able to help?

asked Jun 13, 2019 by lucaswhizz (50 points)
2,779 questions
2,512 answers
6,574 comments
26,506 users