Microsoft .Net Framework unhandled exception Category does not exist (Win Server 2019)

Rushdi Thabit 21 Reputation points
2022-01-08T10:47:49.117+00:00

Unhandled Exception: System.InvalidOperationException: Category does not exist.

at System.Diagnostics.PerformanceCounterLib.GetCategorySample(String machine, String category)

at System.Diagnostics.PerformanceCounterCategory.GetCounterInstances(String categoryName, String machineName)

at System.Diagnostics.PerformanceCounterCategory.GetInstanceNames()

at SuperSocket.SocketEngine.PerformanceMonitor.GetPerformanceCounterInstanceName(Process process)

at SuperSocket.SocketEngine.PerformanceMonitor..ctor(IRootConfig config, IEnumerable`1 appServers, ILogFactory logFactory)

at SuperSocket.SocketEngine.DefaultBootstrap.Initialize(Func`2 serverConfigResolver, ILogFactory logFactory)

at SuperSocket.SocketEngine.DefaultBootstrap.Initialize(Func`2 serverConfigResolver)

at SuperSocket.SocketEngine.DefaultBootstrap.Initialize()

at SocketCommunicator.Program.RunAsConsole() in C:\EWE_EmployeeAttendanceApp\EWE_EmployeeAttendanceApp\SocketCommunicator\Program.cs:line 28

at SocketCommunicator.Program.Main(String[] args) in C:\EWE_EmployeeAttendanceApp\EWE_EmployeeAttendanceApp\SocketCommunicator\Program.cs:line 20

I have tired all the solutions available online. 1. uninstall and reinstall .net framework 2. update windows 2. Scan your computer for malware 3. Troubleshooting process 4. Install the .NET Framework manually 5. Run the .NET Framework repair tool 6. Perform SFC scanning 7. Clean Clean and access Safe Mode

note that the application only not working on one device, but working on other devices without any issues

Developer technologies | Windows Forms
Developer technologies | .NET | .NET Runtime
0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

  2. Rushdi Thabit 21 Reputation points
    2022-01-08T15:06:39.453+00:00

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.