I am using the MailBuilder and have a problem when i try to create the IMail with:
IMail email = builder.Create();
On 2/3 Pcs its working fine but not on the last one. I get a System.Security Error when it comes to the creation. The certificates for signing and encrypting of the mail are placed in a shared folder in the network.
I am using:
builder.From.Add(new MailBox(SENDER));
builder.SignWith(new X509Certificate2(SignPATH, PASSWORD));
builder.To.Add(new MailBox(RECIPANT));
builder.EncryptWith(new X509Certificate2(EncPATH));
Now the problem is the creation of the mail. Any ideas what can be wrong?
Because the code is running correctly on dev machine and another pc i hope its not a heavy code problem. What else can cause windows errors in this context?
Thanks for any help.
Edit:
OS = Windows 7
Error is not specified. Only shows "Module : System.Security"