title: CryptographicException: Unknown Error '80007005'. when calling RSACryptoServiceProvider.Decrypt() in .Net Compact Framework
body: <p>I am trying to use the <code>RSACryptoServiceProvider</code> to encrypt/decrypt. Encrypting works fine, but the <code>Decrypt</code> method throws an exception with the message: </p>
  
  <p>Unknown Error '80007005'.</p>
  
  <p>This is the code:</p>
  
  <pre><code>Byte[] plainData = encoding.GetBytes(plainText);
  Byte[] encryptedData;
  RSAParameters rsap1;
  Byte[] decryptedData;
  using (RSACryptoServiceProvider rsa1 = new RSACryptoServiceProvider())
  {
     encryptedData = rsa1.Encrypt(plainData, false);
     rsap1 = rsa1.ExportParameters(false);
  }
  
  using (RSACryptoServiceProvider rsa2 = new RSACryptoServiceProvider())
  {
     rsa2.ImportParameters(rsap1);
     decryptedData = rsa2.Decrypt(encryptedData, false);
  }
  
  decryptedText = encoding.GetString(decryptedData, 0, decryptedData.Length);
  </code></pre>
  
  <p>Is anyone aware of a workaround?</p>
  
  <p>Thanks!</p>