ı am trying search the PrivateKey property of my certificate which is created by using 'NewRootCertificate' method, but it threws exception.
string pathd = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "localhost_root_l1.pfx");
X509Certificate2 crt = new X509Certificate2(pathd, "1234");

what is the reason of this error ?
ı am trying search the PrivateKey property of my certificate which is created by using 'NewRootCertificate' method, but it threws exception.
string pathd = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "localhost_root_l1.pfx");

X509Certificate2 crt = new X509Certificate2(pathd, "1234");
what is the reason of this error ?