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

Need help installing or running the game?
Check the Install Guide before posting.
Forum rules
Please read the Install Guide before posting in this section.

Sticky threads cover the most common questions. Please review them before posting to avoid duplicate topics and help save time for both players and staff.

Thank you.
DM6143
Posts: 2

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

Post#1 » Mon Apr 10, 2017 6:42 pm

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?

Ads
Tiggo
Former Staff
Posts: 1948

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

Post#2 » Tue Apr 11, 2017 11:04 am

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.
- Martock - Tiggo - Antigonos - Mago - Hamilkar - Melquart
- Smooshie (Destro)

DM6143
Posts: 2

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

Post#3 » Thu Apr 13, 2017 12:50 pm

That's got it, thanks man

User avatar
Ley
Former Staff
Posts: 1541

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

Post#4 » Thu Apr 13, 2017 2:08 pm

Solved and closed.

Who is online

Users browsing this forum: Fey, Lentle, wgm01 and 3 guests