I have problem to create digital signature. I created console application and it works there but when I want to run it at server there is exception. It looks like I have problem with reference to the file. Any idea please?// Generate a signing key. RSACryptoServiceProvider Key = new RSACryptoServiceProvider(); // Create a SignedXml object.