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 (287k 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
0 answers

Upgraded to the latest adaxes release yesterday and now this morning we are not able to access our self-service portal. We have rebooted our server and verified our adaxes service is successfully connected our domains. Any help would be appreciated, thank you!

asked Mar 14 by dhodgin (40 points)
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

We have a preoperty pattern for accepted Country names which has a list of codes. For our case country code VM which "Vietnam" and I believe based on some google research "Viet Nam" is also correct.

asked Jul 12 by Vish539 (400 points)
3,526 questions
3,217 answers
8,197 comments
547,625 users