title: Encrypted connection string can not be decrypted
body: <p>I'm about to publish my application, but I want my connection strings to be encrypted.</p>
  
  <blockquote>
    <p>aspnet_regiis -pef "sectionName of web.config" "path"</p>
  </blockquote>
  
  <p>The command above does the job, I publish my application to the server and 
  run the following command on the server machine:</p>
  
  <blockquote>
    <p>aspnet_regiis -pa "NetFrameworkConfigurationKey" "identityOfMyAppPool"</p>
  </blockquote>
  
  <p>But when I try to browse my application I get the following error:</p>
  
  <blockquote>
    <p>Configuration Error </p>
    
    <p>Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. </p>
    
    <p>Parser Error </p>
    
    <p>Message: Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: The data to be decrypted exceeds the maximum for this modulus of 128 bytes.</p>
  </blockquote>
  
  <p>How can I fix it? </p>
  
  <p>Thanks in advance,</p>