System.IO.FileNotFoundException: CertEnroll::CX509PrivateKey::Create: The system cannot find the file specified. 0x80070002 (WIN32: 2)
The error above is the exception thrown when I attempt to create a private key to generate a CSR using the CX509PrivateKeyClass class from CertEnroll.dll.
It only seems to happen when I attempt to execute code deployed on a windows 2008 server.
It runs fine under windows 7.