Photon server on Windows server 2008 R2
Options
Gaurav
✭
Photon server runs only for few seconds and stops on Windows server 2008 R2. It seems to be the issue with Performance counters. I tried removing the counters, reinstalled them. Din't help. I even set the flag in CounterPublisher.dll.config. Din't help. Below is the log.
8648: 12:09:38.231 - Adding Policy File listener on: 0.0.0.0: 843 with a listen backlog of: 150 and serving Policy File: "D:\Downloads\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\Policy\assets\socket-policy.xml"
8648: 12:09:38.231 - TCP inactivity timeout: 1000ms
8648: 12:09:38.232 - Adding Policy File listener on: 0.0.0.0: 943 with a listen backlog of: 150 and serving Policy File: "D:\Downloads\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\Policy\assets\socket-policy-silverlight.xml"
8648: 12:09:38.232 - TCP inactivity timeout: 1000ms
8648: 12:09:38.324 - Service is running...
8648: 12:09:42.388 - CounterPublisher:4 - PhotonRunning() failed. Exception:
System.TypeInitializationException: The type initializer for 'Photon.CounterPublisher.SystemCounter' threw an exception. ---> System.ArgumentException: Invalid value '' for parameter 'categoryName'.
at System.Diagnostics.PerformanceCounterCategory..ctor(String categoryName, String machineName)
at System.Diagnostics.PerformanceCounterCategory.GetCategories(String machineName)
at Photon.CounterPublisher.SystemCounter.GetInstanceNames(String categoryName) in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 60
at Photon.CounterPublisher.SystemCounter.NetworkInterfaceCounter..ctor(String name, String counter) in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 83
at Photon.CounterPublisher.SystemCounter..cctor() in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 45
--- 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.ArgumentException: Invalid value '' for parameter 'categoryName'.
at System.Diagnostics.PerformanceCounterCategory..ctor(String categoryName, String machineName)
at System.Diagnostics.PerformanceCounterCategory.GetCategories(String machineName)
at Photon.CounterPublisher.SystemCounter.GetInstanceNames(String categoryName) in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 60
at Photon.CounterPublisher.SystemCounter.NetworkInterfaceCounter..ctor(String name, String counter) in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 83
at Photon.CounterPublisher.SystemCounter..cctor() in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 45
--- 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()
8648: 12:09:42.389 - CService::OnException() - Exception: CManagedHost::PhotonRunning() - Failed in AppDomain: 4 - The type initializer for 'Photon.CounterPublisher.SystemCounter' threw an exception.
8648: 12:09:42.389 - Server shutting down...
8648: 12:09:42.389 - Shutdown monitoring enabled, 30000ms before process abort
8648: 12:09:38.231 - Adding Policy File listener on: 0.0.0.0: 843 with a listen backlog of: 150 and serving Policy File: "D:\Downloads\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\Policy\assets\socket-policy.xml"
8648: 12:09:38.231 - TCP inactivity timeout: 1000ms
8648: 12:09:38.232 - Adding Policy File listener on: 0.0.0.0: 943 with a listen backlog of: 150 and serving Policy File: "D:\Downloads\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\Policy\assets\socket-policy-silverlight.xml"
8648: 12:09:38.232 - TCP inactivity timeout: 1000ms
8648: 12:09:38.324 - Service is running...
8648: 12:09:42.388 - CounterPublisher:4 - PhotonRunning() failed. Exception:
System.TypeInitializationException: The type initializer for 'Photon.CounterPublisher.SystemCounter' threw an exception. ---> System.ArgumentException: Invalid value '' for parameter 'categoryName'.
at System.Diagnostics.PerformanceCounterCategory..ctor(String categoryName, String machineName)
at System.Diagnostics.PerformanceCounterCategory.GetCategories(String machineName)
at Photon.CounterPublisher.SystemCounter.GetInstanceNames(String categoryName) in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 60
at Photon.CounterPublisher.SystemCounter.NetworkInterfaceCounter..ctor(String name, String counter) in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 83
at Photon.CounterPublisher.SystemCounter..cctor() in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 45
--- 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.ArgumentException: Invalid value '' for parameter 'categoryName'.
at System.Diagnostics.PerformanceCounterCategory..ctor(String categoryName, String machineName)
at System.Diagnostics.PerformanceCounterCategory.GetCategories(String machineName)
at Photon.CounterPublisher.SystemCounter.GetInstanceNames(String categoryName) in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 60
at Photon.CounterPublisher.SystemCounter.NetworkInterfaceCounter..ctor(String name, String counter) in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 83
at Photon.CounterPublisher.SystemCounter..cctor() in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs:line 45
--- 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()
8648: 12:09:42.389 - CService::OnException() - Exception: CManagedHost::PhotonRunning() - Failed in AppDomain: 4 - The type initializer for 'Photon.CounterPublisher.SystemCounter' threw an exception.
8648: 12:09:42.389 - Server shutting down...
8648: 12:09:42.389 - Shutdown monitoring enabled, 30000ms before process abort
0
Comments
-
please do not hezitate to use search
http://forum.photonengine.com/search?Search=The+type+initializer+for+'Photon.CounterPublisher.SystemCounter'
best,
ilya0