i have follow this article and it works. Thank you so much for cooperating with me
Microsoft .Net Framework unhandled exception Category does not exist (Win Server 2019)
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
7 answers
Sort by: Most helpful
-
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
-