When the. NET Web program uses the RSA algorithm for encryption and decryption, the program reports "System.Security.Cryptography.CryptographicException: Access Denied" error. According to the online search solution to do a variety of permissions configuration, and then eggs. After two days of trial, it is now recorded as follows:
C:\Documents and Settings\All Users\Application Data Add Project application pool corresponding to startup account (or IIS_WPG group) read, read and run, List folder directory permissions. C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys Add Project application pool corresponding startup account (or Iis_ WPG group) All permissions except Full Control and special permissions. PostScript: C:\Documents and Settings\All Users\Application The permission assignment in this directory is still a bit fastidious, for the high security requirements of the production environment server, in the configuration to pay extra attention to.
Workaround for "System.Security.Cryptography.CryptographicException: Access Denied" issue