Workaround for "System.Security.Cryptography.CryptographicException: Access Denied" issue

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.