Hi, I developed a service to manage Active Directory Certificate Services, but when I try to revoke a certificate using CERTADMINLib.dll is obtained an error message.
I generated CERTADMINLib.dll with tlbimp command and certadm.dll as follow:
tlbimp certadm.dll /machine:x64
Because my system running 64bits, after I copy certadm.dll in System32 directory and register dll with regsvr32... I added CERTADMINLib.dll in the project references and created a instance of the CCertAdmin interface as follow:
CERTADMINLib.CCertAdmin objAdmin = new CERTADMINLib.CCertAdmin();
And I got the error:
Retrieving the COM class factory for component with CLSID {37EABAF0-7FB6-11D0-8817-00A0C903B83C} failed due to the following error: 80040154.
Any ideas to solved this problem?
Note:
I tried with x86 too, same results
I generated CERTADMINLib.dll with tlbimp command and certadm.dll as follow:
tlbimp certadm.dll /machine:x64
Because my system running 64bits, after I copy certadm.dll in System32 directory and register dll with regsvr32... I added CERTADMINLib.dll in the project references and created a instance of the CCertAdmin interface as follow:
CERTADMINLib.CCertAdmin objAdmin = new CERTADMINLib.CCertAdmin();
And I got the error:
Retrieving the COM class factory for component with CLSID {37EABAF0-7FB6-11D0-8817-00A0C903B83C} failed due to the following error: 80040154.
Any ideas to solved this problem?
Note:
I tried with x86 too, same results