Hello everyone!
I'm having trouble starting Photon Server. I've followed the instructions found here. but whenever I select
Thanks
I'm having trouble starting Photon Server. I've followed the instructions found here. but whenever I select
LoadBalancing(MyCloud) > Start as application
the server tries to start and fails with the following exception:System.TypeInitializationException: The type initializer for 'Photon.CounterPublisher.SystemCounter' threw an exception. ---> 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.CategoryExists(String machine, String category)
at System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName)
at ExitGames.Diagnostics.Counter.PerformanceCounterReader.Initialize() in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Counter\PerformanceCounterReader.cs:line 134
at Photon.CounterPublisher.SystemCounter..cctor() in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 36
--- End of inner exception stack trace ---
at...
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Photon.CounterPublisher.SystemCounter' threw an exception. ---> 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.CategoryExists(String machine, String category)
at System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName)
at ExitGames.Diagnostics.Counter.PerformanceCounterReader.Initialize() in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Counter\PerformanceCounterReader.cs:line 134
at Photon.CounterPublisher.SystemCounter..cctor() in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 36
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.RuntimeFieldHandle.GetValue(RtFieldInfo field, Object instance, RuntimeType fieldType, RuntimeType declaringType, Boolean& domainInitialized)
at System.Reflection.RtFieldInfo.UnsafeGetValue(Object obj)
at System.Reflection.RtFieldInfo.GetValue(Object obj)
at ExitGames.Diagnostics.Monitoring.CounterSamplePublisherFactory.InitializeCounterPublisher(CounterSamplePublisher counterSamplePublisher, Object counterSet, IEnumerable`1 memberList, String counterSetName) in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Monitoring\CounterSamplePublisherFactory.cs:line 256
at Photon.CounterPublisher.Application.Setup() in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\Application.cs:line 57
at Photon.SocketServer.ApplicationBase.PhotonHostRuntimeInterfaces.IPhotonControl.OnPhotonRunning() in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\ApplicationBase.cs:line 1189
at PhotonHostRuntime.PhotonDomainManager.PhotonPlainAppDomainBehavior.PhotonRunning()
at PhotonHostRuntime.PhotonDomainManager.PhotonRunning()
I'm trying to run the server on Windows 8.1 x64. Any help would be greatly appreciated.Thanks