Hi Murali,
We have introduced a partial verbose logging functionality in the
PGPLib class
(the full logging functionality will be available lately this
year).
Can you download an updated version of the library and send us the
produced verbose log information,
so we can be able to track more closely where does the Null
pointer exception happen.
Below is an example how to log the verbose information (with the
updated version of the library):
// your decryption method
public void decryptFile(string filename, string destPath)
{
string password = "xxx";
string encFile = System.IO.Path.GetTempPath() +
filename;
string keyFile =
ConfigurationManager.AppSettings["DecryptKeyFile"].ToString();
PGPLib pgpDecrypter = new PGPLib();
pgpDecrypter.LogMessageEvent += Log_Event;
File.Create(destPath + filename);
string a = pgpDecrypter.DecryptFile(encFile, keyFile,
password, destPath+filename);
}
private void Log_Event(object sender,
DidiSoft.Pgp.Logging.LogEventArgs e)
{
using (StreamWriter log =
File.AppendText(@"c:\Temp\log.txt"))
{
log.WriteLine(e.EventTime);
log.WriteLine(e.Message);
}
}
Thank you in advance.
07 Jan 2013, 23:00:15 UTC+2, Murali V: