RSACryptoServiceProvider - Decrypt - The parameter is incorrect
<p>I need decrypt text but I am getting the message <code>The parameter is incorrect</code>.</p>

<p>The certificate is getting correctly, it is registered in windows.</p>

<p><a href="https://i.stack.imgur.com/xWKNb.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/xWKNb.jpg" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/6kOOx.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/6kOOx.jpg" alt="enter image description here"></a></p>

<p>Searching about the problem, I can read comment that suggest change the user in the application pool assigned to the web site in the IIS. I tried it but not work.</p>

<p>In the second image shows the size calculation, but I don't sure because subtract 11 to the <code>KeySize</code> divition per 8.</p>

<p>I'm using VS2010 with .net 4. The asp.net proyect uses IIS like server, doesn't use Visual Studio Development Server</p>

<p>What can I try to solve the problem?</p>

<p><strong>[SOLUTION]</strong></p>

<p>The encrypted text assigned in Decrypt method was generated with a certificate obsolete. </p>

<p>The text was encrypted with a certificate but then it was changed, when tried decrypt the encripted text with other certificate the method fails.</p>