KeesDekker wrote:
The same code is running well as a console application. The service logs in with the LocalSystem (different from the development user). The certificate source is in the Trusted Root Certification Authorities list.
Does the
LocalSystem-account have a valid certificate to perform a login? If it's run under a different account, then it would also try to access the certificate-store that belongs to that user-account.
--edit--
It's suggested
here[
^] that the LocalSystem account doesn't have access to the certificate store. Does the service have to run on a limited account, or would it be acceptable to run it using a local useraccount?