CAPICOM - Error 80040154
I have written a simple C# console application that can be run to check the validity of certificates on a machine. Using a Win XP machine with SP2 it works fine with no errors.
When trying to put it on one of the other machines in our office, I get the following error:
"Error - Retrieving the COM class factory for component with CLSID {91D221C4-0CD4-461C-A728-01D509321556} failed due to the following error: 80040154"
The machine is running Windows 2000 but the CAPICOM library is installed and is supposed to work on Win 2000 machines.
The line of code the error refers to (after some investigation) is:
StoreClass localStore = new StoreClass();
Anyone have any ideas about either a workaround or what is causing this?
|