Photon Server shutdown immediately after start as application
When I go to the photon server option and press " start as application",the application will be work and the server item will be blue,but only 5 second photon server will be shutdown immediately!!!!
please help me!!!!
Manny
Answers
-
Thank you for your reply.
I just use the free license 110 CCU by https://dashboard.photonengine.com/en-us/SelfHosted ,and I putting in the deploy/bin_Win64 this file folder.
SDK I download form photon website by https://www.photonengine.com/en-US/sdks#server
I enclose my log file is that right?
And it is possible can you use Teamviewer or Anydesk to contorl my computer?
Thank you so much.
Best regards.
Manny
0 -
hi, @Manny
I see in your logs next thing:
11020: 13:21:18.537 - CounterPublisher:4 - PhotonRunning() failed. Exception: System.TypeInitializationException: 'Photon.CounterPublisher.SystemCounter' 的類型初始設定式發生例外狀況。 ---> System.InvalidOperationException: 無法載入計數器名稱資料,因為從登錄讀取到無效的索引 ''。 於 System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp) 於 System.Diagnostics.PerformanceCounterLib.get_NameTable() 於 System.Diagnostics.PerformanceCounterLib.get_CategoryTable() 於 System.Diagnostics.PerformanceCounterLib.CategoryExists(String machine, String category) 於 System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName) 於 ExitGames.Diagnostics.Counter.PerformanceCounterReader.Initialize() 於 c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Counter\PerformanceCounterReader.cs: 行 134 於 Photon.CounterPublisher.SystemCounter..cctor() 於 d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs: 行 36 --- 內部例外狀況堆疊追蹤的結尾 --- at... System.Reflection.TargetInvocationException: 引動過程的目標傳回例外狀況。 ---> System.TypeInitializationException: 'Photon.CounterPublisher.SystemCounter' 的類型初始設定式發生例外狀況。 ---> System.InvalidOperationException: 無法載入計數器名稱資料,因為從登錄讀取到無效的索引 ''。 於 System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp) 於 System.Diagnostics.PerformanceCounterLib.get_NameTable() 於 System.Diagnostics.PerformanceCounterLib.get_CategoryTable() 於 System.Diagnostics.PerformanceCounterLib.CategoryExists(String machine, String category) 於 System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName) 於 ExitGames.Diagnostics.Counter.PerformanceCounterReader.Initialize() 於 c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Counter\PerformanceCounterReader.cs: 行 134 於 Photon.CounterPublisher.SystemCounter..cctor() 於 d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\SystemCounter.cs: 行 36 --- 內部例外狀況堆疊追蹤的結尾 --- --- 內部例外狀況堆疊追蹤的結尾 --- 於 System.RuntimeFieldHandle.GetValue(RtFieldInfo field, Object instance, RuntimeType fieldType, RuntimeType declaringType, Boolean& domainInitialized) 於 System.Reflection.RtFieldInfo.UnsafeGetValue(Object obj) 於 System.Reflection.RtFieldInfo.GetValue(Object obj) 於 ExitGames.Diagnostics.Monitoring.CounterSamplePublisherFactory.InitializeCounterPublisher(CounterSamplePublisher counterSamplePublisher, Object counterSet, IEnumerable`1 memberList, String counterSetName) 於 c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Monitoring\CounterSamplePublisherFactory.cs: 行 256 於 Photon.CounterPublisher.Application.Setup() 於 d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\Application.cs: 行 57 於 Photon.SocketServer.ApplicationBase.PhotonHostRuntimeInterfaces.IPhotonControl.OnPhotonRunning() 於 h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\ApplicationBase.cs: 行 1189 於 PhotonHostRuntime.PhotonDomainManager.PhotonPlainAppDomainBehavior.PhotonRunning() 於 PhotonHostRuntime.PhotonDomainManager.PhotonRunning() 11020: 13:21:18.537 - CService::OnException() - Exception: CManagedHost::PhotonRunning() - Failed in AppDomain: 4 - 'Photon.CounterPublisher.SystemCounter' 的類型初始設定式發生例外狀況。
try to execute this command line: C:\Windows\SysWOW64\lodctr.exe /R
and try again
best,
ilya
1