views:

234

answers:

1

How to import certadm.dll into managed project and use RevokeCertificate method? I tried adding it as reference but I got error asying it's not assembly or COM object.

Any ideas?

UPDATE: I already tried regsvr32 c:\certadm.dll and I get following error: LoadLibrary("c:\certadm.dll") failed - the specified procedure could not be found.

A: 

You first need to register the COM server using regsvr32 before it will be available to be added as a reference in Visual Studio.

e.g.,

regsvr32 certadm.dll
Eric Smith