Fix an EP denial of access to the registry global key issue

Source: Internet
Author: User

Problem description

The following error occurred when opening the EP site:

Message: An unhandled error has occurred. To view details about this error, enable debugging in the Web. config file or view the Windows event logs.

Source: mscorlib

Exception Details:

Access to the registry key ' Global ' is denied.

at Microsoft.Win32.RegistryKey.Win32Error (Int32 errorCode, String str)
At Microsoft.Win32.RegistryKey.InternalGetValue (String name, Object DefaultValue, Boolean Donotexpand, Boolean checksecurity)
At Microsoft.Win32.RegistryKey.GetValue (String name)
At System.Diagnostics.PerformanceMonitor.GetData (String Item)
At System.Diagnostics.PerformanceCounterLib.GetPerformanceData (String Item)
At System.Diagnostics.PerformanceCounterLib.get_CategoryTable ()
at System.Diagnostics.PerformanceCounterLib.CategoryExists (string machine, string category)
at System.Diagnostics.PerformanceCounterCategory.Exists (string CategoryName, string machinename)
At Microsoft.Dynamics.AX.ManagedInterop.RuntimeContext.InitializePerformanceCounters (String CategoryName)
At Microsoft.Dynamics.Framework.BusinessConnector.PerformanceCounters. Cctor ()

This address:http://www.cnblogs.com/Interkey/p/Access-to-the-registry-key-Global-is-denied.html

Problem analysis

You can tell from Exception Details that Exception is thrown when performancecounters reads the registry key without corresponding permissions.

Solution Ideas

Grant performancecounters the corresponding permissions for the service.

Solution Solutions

1, because we do not have permission to handle this side, and the other side of the operation is to install the deployment of the custom user Service account to join the Administrators user group.

As a result, the above problem was resolved temporarily, but the problem still arose after a period of time. Our contact person because before has encountered the user joins to the Administrators user group after a period of time the user is not in this group situation to guess the other side also to encounter this kind of situation, but the concrete situation is unknown.

2, after searching to find the same problem solution [message:access to the registry key ' Global ' is denied], but in English, in the actual operation is not a good understanding of the above description. Therefore, translate into Chinese and explain:

A) Open computer Management-system tools-local users and Groups-groups-performance Log users.

b) Add the Identity to the performance Log Users group. The difficulty is to get the right identity. Check the Identity of the application pool. If you are using applicationpoolidentity, continue with the steps below.

c) No need to add a local user. Because Applicationpoolidentity is not a real user, adding to the performance Log Users group requires the following form: IIS apppool\apppoolname (where AppPoolName is the application pool name, for example: IIS apppool\ax2012).

D) In order for the changes to take effect, you need to restart IIS or stop and restart the appropriate application pool. Recycling the appropriate application pool does not take effect for the changes.

Step b uses applicationpoolidentity, and if you use a local user, you add the user directly to the performance Log Users group, but you cannot test it because you do not have the appropriate permissions.

The user is added to the Administrators user group after a period of time expires, temporarily unable to follow up.

This address:http://www.cnblogs.com/Interkey/p/Access-to-the-registry-key-Global-is-denied.html

Here's a link for more information about application Pool identities.

Summarize

The nature of the problem is to give permissions so that PerformanceCounters has permission to read the appropriate registry. However, scenario 1 is to add permissions directly to the Administrators group, Scenario 2 is to add the appropriate user to the performance Log Users group, because this user is a virtual user, so you want to add it in a certain format. is essentially authorized.

Other

Coming here feels like it's going to be technical support, the work content is far from expected, the technology used is ax 2012 and SharePoint 2010, and the main work is to solve technical problems rather than development. NET programming is almost no, because the business is not familiar with, so X + + is not written. Feel a bit off the way (but C #, at this stage to develop mainly), of course, the benefits are: normalization and freedom of time. But now that you're here, make sure it's done!

This address:http://www.cnblogs.com/Interkey/p/Access-to-the-registry-key-Global-is-denied.html

Fix an EP denial of access to the registry global key 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.