The error "forbidden requested Registry Access" occurs when Enterprise Library is used.

Source: Internet
Author: User

Applications using enterpriselibraryProgramWhen used on some machines, An Exception error occurs. The prompt is as follows:

Security Exception
Note: An application attempts to perform operations that are not permitted by a security policy. To grant the required permissions to the application, contact the system administrator or change the trust level of the application in the configuration file.
Exception details: system. Security. securityexception: the requested registry access is not allowed.

You can find the answer in FAQs of Enterprise Library. There are three solutions:
1. Run the "installservices. Bat" batch file installed during Enterprise Library installation.
2. Run. Net's installutil program settings (the above script also uses the installutil command ).
3. Remove the usewmi, useeventlog, and useperformancecounter compilation parameters in the common project and re-compile entlib.

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.