Page 1 of 1

Solved - Data.myp: System.InvalidOperationException: Category does not exist.

Posted: Mon Apr 10, 2017 6:42 pm
by DM6143
I'm probably just being dumb but i can get on the launcher just fine and when i connect the game opens but this message pops up aswell

Data.myp:
System.InvalidOperationException: Category does not exist.
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 MYPHandler.MYPHandler..ctor(String filename, del_FileTableEventHandler eventHandler_FileTable, del_FileEventHandler eventHandler_Extraction, HashDictionary hashDic)
at RoRLauncher.Client.UpdateWarData()

the game opens but theres nothing i can do. The black box remains empty however long i wait.
Iv tried everything
lodctr /r as administrator and it says its succeeds but i still get the error and issues
tried the performance counter which opens for a second then closes and still dosent work
any tips?

Re: Data.myp: System.InvalidOperationException: Category does not exist.

Posted: Tue Apr 11, 2017 11:04 am
by Tiggo
The launcher doesn't work! The log contains the following:

CODE: SELECT ALL
Data.myp:
System.InvalidOperationException: Cannot load Counter Name data because an invalid index '' was read from the registry.
at System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)
at System.Diagnostics.PerformanceCounterLib.get_NameTable()
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()

You need to rebuild performance counters. How to manually rebuild performance counters:
1- Go to start, and type in the search box "cmd". Right click cmd, and run as administrator.
2- Type in the command console, "cd c:\windows\system32", and hit enter.
3- Then type "lodctr /r", and hit enter.

It will take a few seconds to perform the command.Performance counters should be rebuilt. Try starting the game again.

If that does not work, type
CODE: SELECT ALL
lodctr /e:PerfProc
instead.

Re: Data.myp: System.InvalidOperationException: Category does not exist.

Posted: Thu Apr 13, 2017 12:50 pm
by DM6143
That's got it, thanks man

Re: Data.myp: System.InvalidOperationException: Category does not exist.

Posted: Thu Apr 13, 2017 2:08 pm
by Ley
Solved and closed.