by Tim McClure [tim dot mcclure at ge dot com] posted on 2005/09/20 |
|
When I run my application as a windows service I received the following exception:
2005-09-20 13:33:23 ERROR Exception = Org.Mentalis.Security.Certificates.CertificateException: Could not import the private key from the PVK file.
at Org.Mentalis.Security.Certificates.Certificate.AssociateWithPrivateKey(String pvkFile, String password, Boolean exportable)
at CassiniEx.Server.GetCertificate(String keyFile, String certFile, String password)
at CassiniEx.Server.StartSecureSocket(Int32 newPort, Int32 newPortIndex)
My program works in the windows IDE using the same certificate and private key.
I haveno clue why it is failing as a service. Any help will be greatly appreciated. |