14 May 2015

Access to the registry key 'Global' is denied in Sitecore

My ECM would not send any email. By looking into the logs, I can see there is some issue when initializing the CPUAvgPerformance as below.

ManagedPoolThread #16 18:39:46 ERROR EmailCampaign: Error on Initializating CPUAvgPerformance with exception: System.UnauthorizedAccessException: 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.CounterExists(String category, String counter, Boolean& categoryExists)
   at System.Diagnostics.PerformanceCounterLib.CounterExists(String machine, String category, String counter)
   at System.Diagnostics.PerformanceCounter.InitializeImpl()
   at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)
   at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName)
   at Sitecore.Modules.EmailCampaign.Core.Dispatch.CpuAvgPerformance..ctor()
   at Sitecore.Modules.EmailCampaign.Core.Dispatch.TimeSummary..ctor()

How to fix it?

  1. Go to "Computer Management - System Tools - Local Users and Groups - Groups - Performance log Users" and add the "User" running your AppPool into this group

  2. If you are using "ApplicationPoolidentity" running your AppPool. use "IIS AppPool\AppPoolName"

Note: After that, you need to "Restart the IIS" or "Stop/Start" AppPool. Recycle AppPool will not help.


1 comment:

  1. Hemming is at least of|no less than} a two stage process where a chunk of sheet steel is bent and bottomed out right into a V-die, then eliminated and placed right into a flattening die to flatten the hem. Blanking and punching are primarily the identical process with opposing results. Blanking is the process where the sheet steel is held Heaters by a die and a punch places a “blanking force” by way of the fabric.


WFFM Web form for marketer fail to submit in Sitecore

I have setup a standard form using WFFM in Sitecore 8.2. It always fail when submit. Error as below, Error: Exception: System.Data.DataE...