No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi, Iam having issues with a part of my code in a windows service that prevents it from being installed with the error,nullrefrenceexception unhandled.here is the code public string GetEncryptedText(string PlainStringToEncrypt) { string DigitalCertificateName = "URAioPmtCert1"; X509Store store = new X509Store(StoreName.Root); X509Certificate2 x509_2 = null; store.Open(OpenFlags.ReadWrite); if (DigitalCertificateName.Length > 0) … |
|
Hi, I am trying to windows service to read files but it reads even the ones I already read.How can I only read new files? this is the code // Process the list of files found in the directory. string[] fileEntries = Directory.GetFiles(sourceDir); foreach (string fileName in fileEntries) { // … |