问题 I have identified an issue related to building apps that use C:\Windows\System32\CertEnroll.dll as a reference. The following code works fine when compiled using VS 2015 on Windows 7 and then ran on a Windows 7 machine. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CERTENROLLLib; namespace CertTest { class Program { static void Main(string[] args) { try { CX509PrivateKey key = new CX509PrivateKey(); key.ContainerName