Cannot load Counter Name data, .NET Framework 4.0 Performance Counter registry issue
Potential Symptoms
- When launching Venus receive following error:
- Daktronics Nucleus service could not be started.
- When checking the Nucleus Service Error Log have the following:
- Exception: System.TypeInitializationException: The type initializer for 'Daktronics.Nucleus.Operations.ScriptManager' threw an exception. ---> System.InvalidOperationException: Cannot load Counter Name data because an invalid index '' was read from the registry.
- Can also receive the following error
- Title: Open Service Daktronics.Nucleus.UserManagementService
Message: The type initializer for 'Daktronics.Nucleus.Operations.ScriptManager' threw an exception
Category: Nucleus, System
Severity: Error
Security: UseAspNetRoles
Certificate: CN=Daktronics Nucleus
IMetadataExchange: http://localhost:9244/UserManagementService/mex
UserMangement: net.tcp://localhost:9245/UserManagementService
Exception: System.TypeInitializationException: The type initializer for 'Daktronics.Nucleus.Operations.ScriptManager' threw an exception ---> System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
at System.Diagnostics.PerformanceCounter.Initialize()
at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean ReadOnly)
at System.Workflow.Runtime.PerformanceCounterManager.CreateCounters(String name)
at System.Workflow.Runtime.Hosting.DefaultWorkflowSchedulerService.OnStarted()
atSystem.Workflow.Runtime.Hosting.WorkflowRuntimeService.HandleStarted(Object source, WorkflowRuntimeEventArgs e)
at System.EventHandler'1.Invoke(Object sender, TEventArgs e)
at System.Workflow.Runtime.WorkflowRuntime.StartRuntime()
at Daktronics.Nucleus.Operations.ScriptManager..ctor()
at Daktronics.Nucleus.Operations.ScriptManager..cctor()
---End of inner exception stack trace ---
at Daktronics.Nucleus.NucleusAddIn.OpenService(Type type)
Environment
- Product Family: Software
- Product:
- Component: .NET Framework 4.0
- Control System: Venus 1500 v4 (v4.18 and higher)
Cause
- There is a Performance Counter registry issue with the .Net Framework.
Resolution
- Run a full repair on .Net Framework 4.0 Client.
- Run repair on Venus.
- Open cmd as Administrator (right click open as administrator).
- Execute the following command from the command prompt:
- cd\ to get to C:> prompt.
- lodctr /R
- (You can copy and paste this into command prompt).
- Reboot the computer, and launch Venus 1500 v4.
KB ID: DD2608451
DISCLAIMER: Use of this content may void the equipment warranty, please read the disclaimer prior to performing any service of the equipment.
DAKTRONICS DOES NOT PROMISE THAT THE CONTENT PROVIDED HEREIN IS ERROR-FREE OR THAT ANY DEFECTS WILL BE CORRECTED, OR THAT YOUR USE OF THE CONTENT WILL PROVIDE SPECIFIC RESULTS. THE CONTENT IS DELIVERED ON AN "AS-IS" AND "AS-AVAILABLE" BASIS. ALL INFORMATION PROVIDED IN THIS ARTICLE IS SUBJECT TO CHANGE WITHOUT NOTICE. DAKTRONICS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OF ACCURACY, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. DAKTRONICS DISCLAIMS ANY AND ALL LIABILITY FOR THE ACTS, OMISSIONS AND CONDUCT OF YOU OR ANY THIRD PARTIES IN CONNECTION WITH OR RELATED TO YOUR USE OF THE CONTENT. ADJUSTMENT, REPAIR, OR SERVICE OF THE EQUIPMENT BY ANYONE OTHER THAN DAKTRONICS OR ITS AUTHORIZED REPAIR AGENTS MAY VOID THE EQUIPMENT WARRANTY. YOU ASSUME TOTAL RESPONSIBILITY FOR YOUR USE OF THE CONTENT AND ANY LINKED CONTENT. YOUR SOLE REMEDY AGAINST DAKTRONICS FOR DISSATISFACTION WITH THE CONTENT IS TO STOP USING THE CONTENT. THIS LIMITATION OF RELIEF IS A PART OF THE BARGAIN BETWEEN THE PARTIES.
The above disclaimer applies to any property damage, equipment failure, liability, infringement, or personal injury claim arising out of or in any way related to your use or application of the content, whether such claim is for breach of contract, tort, negligence or any other cause of action.