asp.net web.config encryption - The RSA key container was not found
<p>I've done the following in order to encrypt the web.config using RSA provider.</p>

<p>RDP to Web Server and opened the VS Command Prompt with my account.</p>

<p>Create a custom RSA encryption key:</p>

<blockquote>
  <p>aspnet_regiis -pc "MyKey" -exp</p>
</blockquote>

<p>Encrypt the connectionStrings section using the custom RSA key:</p>

<blockquote>
  <p>aspnet_regiis.exe -pef "connectionStrings" "D:\Web\" -prov
  "MyRsaProvider"</p>
</blockquote>

<p>I can see that the web.config has been encrypted. However when I try to load the web page it throws an error below:</p>

<blockquote>
  <p><em>"<strong>....The RSA key container was not found.</strong>"</em></p>
</blockquote>

<p>I then tried these commands one by one and tested:</p>

<blockquote>
  <p>aspnet_regiis -pa "MyKey" "domain\appPool_serviceAccount"</p>
  
  <p>aspnet_regiis -pa "MyKey" "ASPNET"</p>
  
  <p>aspnet_regiis -pa MyKey" IIS APPPOOL\CRSAppPool" -full</p>
  
  <p>aspnet_regiis -pa "MyKey" "NT Authority\Network Service"</p>
</blockquote>

<p>And, I still get this error:</p>

<blockquote>
  <p><em>"....The RSA key container was not found."</em></p>
</blockquote>

<p>Could some one please help me whether it's a framework bug or am I doing something not right?</p>
