“Photon.SocketServer.Configuration.PhotonSettings”

28408: 16:38:32.889 - ERROR: Failed to start application: "MyServerInit" in app domain: 2

20488: 16:38:32.890 - CManagedHost::OnDefaultAction() - OPR_AppDomainUnload - eUnloadAppDomain

28408: 16:38:32.890 - CService::OnException() - Exception: CManagedHost::StartApplication() - Failed to start application in AppDomain: 2 - “Photon.SocketServer.Configuration.PhotonSettings”的类型初始值设定项引发异常。

28408: 16:38:32.890 - Server shutting down...

28408: 16:38:32.890 - Shutdown monitoring enabled, 60000ms before process abort

28408: 16:38:32.890 - Notifying CLR applications of shutdown...

28408: 16:38:32.890 - RequestStop: defalt app domain

28408: 16:38:32.890 - Shutting down NEW TCP Outbound Connection Manager...

28408: 16:38:32.890 - Shutting down ENet host...

28408: 16:38:32.890 - Disconnecting all peers...

28408: 16:38:32.890 - Shutting down socket servers...

28408: 16:38:32.890 - Shutting down ENet thread pool...

28408: 16:38:32.891 - Shutting down TCP inactivity timers...

28408: 16:38:32.891 - Timer queue stats: TCP Timers

28408: 16:38:32.891 - Stats are not available

28408: 16:38:32.891 - Shutting down ENet timers...

28408: 16:38:32.891 - Waiting for socket servers to shutdown...

28408: 16:38:32.891 - Shutting down I/O thread pool...

28408: 16:38:32.891 - Shutting down CLR applications...

28408: 16:38:32.891 - Shutting down network data traces...

28408: 16:38:32.891 - Waiting for network data traces to complete...

28408: 16:38:32.891 - Destroying servers

28408: 16:38:32.891 - Destroying WebRTC Outbound Connection Manager

28408: 16:38:32.891 - Destroying WebRTC Outbound Host

28408: 16:38:32.891 - Destroying outbound ICE connection manager

28408: 16:38:32.891 - Destroying ENet timer wheel

28408: 16:38:32.891 - Timer queue stats: ENetTimerWheel

28408: 16:38:32.891 - Stats are not available

28408: 16:38:32.891 - Destroying Network Data Trace factory

28408: 16:38:32.891 - Destroying ENet host

28408: 16:38:32.891 - Destroying WebRTC inactivity timer queue

28408: 16:38:32.891 - Destroying WebRTC host

28408: 16:38:32.891 - Destroying ICE connection manager

28408: 16:38:32.891 - Flushing stream socket allocator...

28408: 16:38:32.891 - Flushing UDP Chunk datagram socket allocator...

28408: 16:38:32.891 - Flushing NEW TCP socket allocator...

28408: 16:38:32.891 - Destroying TCP inactivity timer

28408: 16:38:32.891 - Flushing ENET buffer allocator...

28408: 16:38:32.891 - Flushing TCP buffer allocator...

28408: 16:38:32.891 - Flushing TCP buffer handle allocator...

28408: 16:38:32.891 - Destroying CLR applications

28408: 16:38:32.891 - ~CCLRApplicationCollection() - Waiting up to 10 seconds for the CLR to release all of our objects

20488: 16:38:32.894 - CManagedHost::OnDomainUnload() - 2

28408: 16:38:32.894 - ~CCLRApplicationCollection() - Done. All objects released

28408: 16:38:32.894 - ~CManagedHost() - Release default app domain

28408: 16:38:32.894 - CManagedHost::OnDomainUnload() - 1

28408: 16:38:32.894 - ~CManagedHost() - Waiting up to 10 seconds for CLR shutdown...

28408: 16:38:32.906 - ~CManagedHost

28408: 16:38:32.906 - Destroying ENet thread pool

28408: 16:38:32.906 - Destroying I/O thread pool

28408: 16:38:32.906 - Destroying HTTP File Server I/O thread pool

28408: 16:38:32.906 - Destroying ENet I/O thread pool

28408: 16:38:32.906 - Destroying ENet buffer allocator

28408: 16:38:32.906 - Destroying TCP buffer allocator

28408: 16:38:32.906 - Destroying TCP socket allocator

28408: 16:38:32.906 - Destroying NEW TCP socket allocator

28408: 16:38:32.906 - Destroying NEW TCP configuration

28408: 16:38:32.906 - Config|INFO| New TCP: Flushing TCP socket allocator...

28408: 16:38:32.906 - Config|INFO| New TCP: Flushing TCP buffer allocator...

28408: 16:38:32.906 - Config|INFO| New TCP: Flushing TCP buffer handle allocator...

28408: 16:38:32.906 - Config|INFO| New TCP: Flushing policy file buffer allocator...

28408: 16:38:32.906 - Destroying UDP Chunk inbound socket allocator

28408: 16:38:32.906 - Destroying shared datagram flow control data

28408: 16:38:32.906 - Shutdown complete...

28408: 16:38:32.907 - Service shutting down: failed to start application. Errorcode: 108

28408: 16:38:33.293 - Service shut down complete

Comments

  • Hello,

    I've been reporting errors and can't start


  • hi, @Eaer

    do not return null from LoadConfiguration method. Return default configuration


    best,

    ilya

  • hell0:

    My development environment:

    • Windows 10 x64
    • Microsoft .NET Framework 4.8
    • Microsoft Visual Studio 2019

    Microsoft.Extensions.Configuration.Abstractions.dll The version 3.1.8 recommended by SDK is used

    Now the error is reported, and the version is wrong, Error reporting prompt:

    未能加载文件或程序集“Microsoft.Extensions.Configuration.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)

    Where is the problem? I have found many ways to solve it. How to solve it

  • hello:

    I want to know how your first problem was solved, because I also had this problem.

    28408: 16:38:32.890 - CService::OnException() - Exception: CManagedHost::StartApplication() - Failed to start application in AppDomain: 2 - “Photon.SocketServer.Configuration.PhotonSettings”的类型初始值设定项引发异常。

  • @yaonian do not return null from LoadConfiguration method. Return default configuration

  • @yaonian btw have you encountered my second problem, or anything that may help to the issue?

  • I've had a similar problem, when I used 6.0.0, it showed 3.1.8.0, which I guess may have something to do with the version you used.

  • hi, @Eaer and @yaonian

    Not sure why this happens. However there is a trick that you can use.

    please check your Photon.LoadBalancing.dll.config. it should contains stuff like this:

        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.Extensions.Configuration.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-3.1.8.0" newVersion="3.1.8.0" />
          </dependentAssembly>
        </assemblyBinding>
    

    you need to add such entries in case the are missing.

    if you need to use version 6.0.0 or any above just update such entries so that correct assembly redirect happens

    best,

    ilya

  • Photon.LoadBalancing.dll.config How is this file generated If my project is a new project, whether it can be used, I see the document only says that it needs to be added, how to add it, and how to add it to my new project is a problem

  • hi, @Eaer

    Photon.LoadBalancing.dll.config is auto generated file. it is generated by compiler basing on App.config. You have to add it (App.config) to your project. also please add next settings to your project file:

        <CopyLocalLockFileAssemblies>True</CopyLocalLockFileAssemblies>
        <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
        <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
    


    best,

    ilya

  • There is a new problem. My configuration table path is correct. Why do I always report an error and cannot find the file?


    <Instance Name="PhotonServer"

      MaxMessageSize="512000"

      MaxQueuedDataPerPeer="512000"

      PerPeerMaxReliableDataInTransit="51200"

      PerPeerTransmitRateLimitKBSec="256"

      PerPeerTransmitRatePeriodMilliseconds="200"

      MinimumTimeout="5000"

      MaximumTimeout="30000"

      DisplayName="PhotonServer (MyCloud)">


      <!-- 0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. -->

      <!-- Port 5055 is Photon's default for UDP connections. -->

      <UDPListeners>

       <UDPListener

        IPAddress="0.0.0.0"

        Port="5055"

        OverrideApplication="NameServer">

       </UDPListener>

       <UDPListener

        IPAddress="0.0.0.0"

        Port="27001"

        OverrideApplication="NameServer">

       </UDPListener>

       <UDPListener

        IPAddress="0.0.0.0"

        Port="5056"

        OverrideApplication="NameServer">

       </UDPListener>

       <UDPListener

        IPAddress="0.0.0.0"

        Port="27002"

        OverrideApplication="NameServer">

       </UDPListener>

       <UDPListener

        IPAddress="0.0.0.0"

        Port="5058"

        OverrideApplication="NameServer">

       </UDPListener>

       <UDPListener

        IPAddress="0.0.0.0"

        Port="27000"

        OverrideApplication="NameServer">

       </UDPListener>

      </UDPListeners>


      <!-- 0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. -->

      <TCPListeners>

       <!-- TCP listener for Game clients on Master application -->

       <TCPListener

        IPAddress="0.0.0.0"

        Port="4530"

        OverrideApplication="NameServer"

        InactivityTimeout="10000"

        >

       </TCPListener>


       <TCPListener

        IPAddress="0.0.0.0"

        Port="4531"

        OverrideApplication="NameServer"

        InactivityTimeout="10000">

       </TCPListener>


       <TCPListener

         IPAddress="0.0.0.0"

         Port="4533"

         OverrideApplication="NameServer"

         InactivityTimeout="10000">

       </TCPListener>


       <!-- DON'T EDIT THIS. TCP listener for GameServers on Master application -->

       <TCPListener

        IPAddress="0.0.0.0"

        Port="4520">

       </TCPListener>

      </TCPListeners>


      <!-- Policy request listener for Unity and Flash (port 843) and Silverlight (port 943)

         multiple Listeners allowed for different ports -->

      <!-- PolicyFiles are now disabled by default and will be deprecated

         Uncomment to enable them back 

         also make sure to add PolicyFile="Policy\assets\socket-policy.xml"

         to the TCPListeners if needed -->

      <!--

      <PolicyFileListeners>

       <PolicyFileListener

       IPAddress="0.0.0.0"

       Port="843"

       PolicyFile="Policy\assets\socket-policy.xml">

       </PolicyFileListener>

       <PolicyFileListener

       IPAddress="0.0.0.0"

       Port="943"

       PolicyFile="Policy\assets\socket-policy-silverlight.xml">

       </PolicyFileListener>

      </PolicyFileListeners>

    -->



      <!-- WebSocket (and Flash-Fallback) compatible listener -->


      <HTTPListeners>

       <HTTPListener

        Name="*:[PORT]::Master"

        IPAddress="0.0.0.0"

        Port="9090"

        DisableNagle="true"

        InactivityTimeout="10000">

        <Routing>

         <Route

          Url="/*"

          OverrideApplication="NameServer"

          PeerType="WebSocket"

          Counters="false"

         />

        </Routing>

       </HTTPListener>


       <HTTPListener

        Name="*:[PORT]::Game"

        IPAddress="0.0.0.0"

        Port="9091"

        DisableNagle="true"

        InactivityTimeout="10000"

        AppDataInactivityTimeout="15000">

        <Routing>

         <Route

          Url="/*"

          OverrideApplication="NameServer"

          PingEvery="2000"

          PeerType="WebSocket"

          Counters="false"

         />

        </Routing>

       </HTTPListener>


       <HTTPListener

        Name="*:[PORT]::NameServer"

        IPAddress="0.0.0.0"

        Port="9093"

        DisableNagle="true"

        InactivityTimeout="10000"

        AppDataInactivityTimeout="15000">

        <Routing>

         <Route

          Url="/*"

          OverrideApplication="NameServer"

          PeerType="WebSocket"

          Counters="false"

         />

        </Routing>

       </HTTPListener>


       <!--

       <HTTPListener

        Name="*:[PORT]"

        IPAddress="0.0.0.0"

        Port="80"

        DisableNagle="true"

        InactivityTimeout="10000"

        AppDataInactivityTimeout="15000">

        <Routing>

         <Route 

          Name="Master"

          Url="/master/+" 

          OverrideApplication="Master"

          PeerType="WebSocket"

          Counters="true"

          />

         <Route 

          Name="Game"

          Url="/game/+" 

          OverrideApplication="Game"

          PingEvery="2000" 

          PeerType="WebSocket"

          Counters="true"

         />

         <Route Url="/photon/m" Ping="true" Counters="false"/>

         <Route 

          Name="NameServer"

          Url="/+" 

          OverrideApplication="NameServer"

          PeerType="WebSocket"

          Counters="false"

         />

         <Route Url="/photon/n" Ping="true" Counters="false"/>

        </Routing>

       </HTTPListener>

       -->


       <!--

       <HTTPListener

        Name="*:[PORT]::Master"

        IPAddress="0.0.0.0"

        Port="19090"

        DisableNagle="true"

        InactivityTimeout="10000"

        Secure="true">

        <Routing>

         <Route 

          Url="/*" 

          OverrideApplication="Master"

          PeerType="WebSocket"

          Counters="false"

         />

        </Routing>

       </HTTPListener>


       <HTTPListener

        Name="*:[PORT]::Game"

        IPAddress="0.0.0.0"

        Port="19091"

        DisableNagle="true"

        InactivityTimeout="10000"

        AppDataInactivityTimeout="15000"

        Secure="true">

        <Routing>

         <Route 

          Url="/*" 

          OverrideApplication="Game"

          PingEvery="2000" 

          PeerType="WebSocket"

          Counters="false"

         />

        </Routing>

       </HTTPListener>


       <HTTPListener

        Name="*:[PORT]::NameServer"

        IPAddress="0.0.0.0"

        Port="19093"

        DisableNagle="true"

        InactivityTimeout="10000"

        AppDataInactivityTimeout="15000"

        Secure="true">

        <Routing>

         <Route 

          Url="/*" 

          OverrideApplication="NameServer"

          PeerType="WebSocket"

          Counters="false"

         />

        </Routing>

       </HTTPListener>

       -->


       <!--

       <HTTPListener

        Name="*:[PORT]"

        IPAddress="0.0.0.0"

        Port="443"

        DisableNagle="true"

        InactivityTimeout="10000"

        AppDataInactivityTimeout="15000"

        Secure="true">

        <Routing>

         <Route 

          Name="Master"

          Url="/master/+" 

          OverrideApplication="Master"

          PeerType="WebSocket"

          Counters="true"

          />

         <Route 

          Name="Game"

          Url="/game/+" 

          OverrideApplication="Game"

          PingEvery="2000" 

          PeerType="WebSocket"

          Counters="true"

         />

         <Route Url="/photon/m" Ping="true" Counters="false"/>

         <Route 

          Name="NameServer"

          Url="/+" 

          OverrideApplication="NameServer"

          PeerType="WebSocket"

          Counters="false"

         />

         <Route Url="/photon/n" Ping="true" Counters="false"/>

        </Routing>

       </HTTPListener>

       -->

      </HTTPListeners>



      <!-- Defines the Photon Runtime Assembly to use. -->

      <Runtime

       Assembly="PhotonHostRuntime, Culture=neutral"

       Type="PhotonHostRuntime.PhotonDomainManager"

       UnhandledExceptionPolicy="TerminateProcess">

      </Runtime>


      <!-- Defines which applications are loaded on start and which of them is used by default. Make sure the default application is defined. -->

      <!-- Application-folders must be located in the same folder as the bin_Win64 folders. The BaseDirectory must include a "bin" folder. -->

      <Applications Default="NameServer">

        

       <Application

        Name="NameServer"

        BaseDirectory="PhotonServer"

        Assembly="PhotonServer"

        Type="PhotonServer.MainServerApp">

       </Application>

      </Applications>

     </Instance>

    The above is my profile!!!!!!


    The name and path are correct


  • hi, @Eaer

    From the picture of logs I can not translate error you get and can not help you?

    best,

    ilya

  • Eaer
    Eaer
    edited October 2022

    12876: 14:29:40.939 - GC: Server garbage collector enabled

    12876: 14:29:40.939 - GC: Concurrent garbage collector enabled

    12876: 14:29:40.939 - GC: Trim on commit disabled

    12876: 14:29:40.939 - Using CLR config file: E:\Project\Photon5.0\photon-server-sdk_v5-0-12-24499-rc1\deploy\bin_Win64\PhotonSocketServer.exe.config

    12876: 14:29:40.939 - Loaded version: "v4.0.30319"

    12876: 14:29:41.051 - Photon host runtime loaded

    12876: 14:29:42.256 - License is valid.

    12876: 14:29:42.256 - Licensed for 100 concurrent connections.

    12876: 14:29:42.256 - ENet: Ping interval: 1000 ms

    12876: 14:29:42.256 - ENet: Data sending delay: 5 ms

    12876: 14:29:42.256 - ENet: ACK sending delay: 5 ms

    12876: 14:29:42.256 - ENet: Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes

    12876: 14:29:42.256 - ENet: Per peer bandwidth limit

    12876: 14:29:42.256 - ENet: Transmit Rate Limit: 256 KB/Sec

    12876: 14:29:42.256 - ENet: Limit period: 200ms

    12876: 14:29:42.256 - ENet: Limit per period: 52428 bytes

    12876: 14:29:42.256 - ENet: Max queued data for transmission per peer: 512000 bytes

    12876: 14:29:42.256 - ENet: Minimum retransmit timeout: 200

    12876: 14:29:42.256 - ENet: No Maximum retransmit timeout

    12876: 14:29:42.256 - ENet: Minimum timeout: 5000ms

    12876: 14:29:42.256 - ENet: Maximum timeout: 30000ms

    12876: 14:29:42.256 - ENet: Max Inbound Reliable Data Queued (awaiting resends of earlier sequence numbers) per peer : 163840 bytes

    12876: 14:29:42.256 - ENet: Will validate inbound ENet datagram CRC if present

    12876: 14:29:42.256 - ENet: No RTT ACK adjustment timeout

    12876: 14:29:42.256 - ENet: Packet throttle enabled: True

    12876: 14:29:42.256 - ENet: Default packet throttle: 32

    12876: 14:29:42.256 - ENet: Packet throttle scale: 32

    12876: 14:29:42.256 - ENet: Packet throttle counter: 7

    12876: 14:29:42.256 - ENet: Round Trip throttle multiplier: 2

    12876: 14:29:42.256 - ENet: Unreliable Queue timeout: 5ms

    12876: 14:29:42.256 - ENet: AO: Initial queue size: 4096

    12876: 14:29:42.256 - ENet: AO: Max consecutive ops: 200

    12876: 14:29:42.256 - ENet: max pooled buffers in peer: 10

    12876: 14:29:42.256 - ENet: Packet trace ring buffer size: 10

    12876: 14:29:42.256 - ENet: No Application data inactivity timeout

    12876: 14:29:42.256 - CMultiPoolBufferAllocator::GetAllocator() - "CENetHost"

    12876: 14:29:42.256 - Config|INFO| New TCP: Max message size: 512000

    12876: 14:29:42.256 - About to load application: NameServer from PhotonServer

    12876: 14:29:43.519 - Taking reference on default app domain

    12876: 14:29:43.589 - ERROR: Failed to start application: "NameServer" in app domain: 2

    12876: 14:29:43.589 - CService::OnException() - Exception: CManagedHost::StartApplication() - Failed to start application in AppDomain: 2 - 系统找不到指定的文件。

    8540: 14:29:43.589 - CManagedHost::OnDefaultAction() - OPR_AppDomainUnload - eUnloadAppDomain

    12876: 14:29:43.589 - Server shutting down...

    12876: 14:29:43.589 - Shutdown monitoring enabled, 60000ms before process abort

    12876: 14:29:43.589 - Notifying CLR applications of shutdown...

    12876: 14:29:43.589 - RequestStop: defalt app domain

    12876: 14:29:43.590 - Shutting down NEW TCP Outbound Connection Manager...

    12876: 14:29:43.590 - Shutting down ENet host...

    12876: 14:29:43.590 - Disconnecting all peers...

    12876: 14:29:43.590 - Shutting down socket servers...

    12876: 14:29:43.590 - Shutting down ENet thread pool...

    12876: 14:29:43.590 - Shutting down TCP inactivity timers...

    12876: 14:29:43.591 - Timer queue stats: TCP Timers

    12876: 14:29:43.591 - Stats are not available

    12876: 14:29:43.591 - Shutting down ENet timers...

    12876: 14:29:43.591 - Waiting for socket servers to shutdown...

    12876: 14:29:43.591 - Shutting down I/O thread pool...

    12876: 14:29:43.591 - Shutting down CLR applications...

    12876: 14:29:43.591 - Shutting down network data traces...

    12876: 14:29:43.591 - Waiting for network data traces to complete...

    12876: 14:29:43.591 - Destroying servers

    12876: 14:29:43.591 - Destroying WebRTC Outbound Connection Manager

    12876: 14:29:43.591 - Destroying WebRTC Outbound Host

    12876: 14:29:43.591 - Destroying outbound ICE connection manager

    12876: 14:29:43.591 - Destroying ENet timer wheel

    12876: 14:29:43.591 - Timer queue stats: ENetTimerWheel

    12876: 14:29:43.591 - Stats are not available

    12876: 14:29:43.591 - Destroying Network Data Trace factory

    12876: 14:29:43.591 - Destroying ENet host

    12876: 14:29:43.591 - Destroying WebRTC inactivity timer queue

    12876: 14:29:43.591 - Destroying WebRTC host

    12876: 14:29:43.591 - Destroying ICE connection manager

    12876: 14:29:43.591 - Flushing stream socket allocator...

    12876: 14:29:43.591 - Flushing UDP Chunk datagram socket allocator...

    12876: 14:29:43.591 - Flushing NEW TCP socket allocator...

    12876: 14:29:43.591 - Destroying TCP inactivity timer

    12876: 14:29:43.591 - Flushing ENET buffer allocator...

    12876: 14:29:43.591 - Flushing TCP buffer allocator...

    12876: 14:29:43.591 - Flushing TCP buffer handle allocator...

    12876: 14:29:43.591 - Destroying CLR applications

    12876: 14:29:43.591 - ~CCLRApplicationCollection() - Waiting up to 10 seconds for the CLR to release all of our objects

    8540: 14:29:43.596 - CManagedHost::OnDomainUnload() - 2

    12876: 14:29:43.597 - ~CCLRApplicationCollection() - Done. All objects released

    12876: 14:29:43.597 - ~CManagedHost() - Release default app domain

    12876: 14:29:43.597 - CManagedHost::OnDomainUnload() - 1

    12876: 14:29:43.597 - ~CManagedHost() - Waiting up to 10 seconds for CLR shutdown...

    12876: 14:29:43.610 - ~CManagedHost

    12876: 14:29:43.610 - Destroying ENet thread pool

    12876: 14:29:43.610 - Destroying I/O thread pool

    12876: 14:29:43.610 - Destroying HTTP File Server I/O thread pool

    12876: 14:29:43.610 - Destroying ENet I/O thread pool

    12876: 14:29:43.610 - Destroying ENet buffer allocator

    12876: 14:29:43.610 - Destroying TCP buffer allocator

    12876: 14:29:43.610 - Destroying TCP socket allocator

    12876: 14:29:43.610 - Destroying NEW TCP socket allocator

    12876: 14:29:43.610 - Destroying NEW TCP configuration

    12876: 14:29:43.610 - Config|INFO| New TCP: Flushing TCP socket allocator...

    12876: 14:29:43.610 - Config|INFO| New TCP: Flushing TCP buffer allocator...

    12876: 14:29:43.610 - Config|INFO| New TCP: Flushing TCP buffer handle allocator...

    12876: 14:29:43.610 - Config|INFO| New TCP: Flushing policy file buffer allocator...

    12876: 14:29:43.610 - Destroying UDP Chunk inbound socket allocator

    12876: 14:29:43.610 - Destroying shared datagram flow control data

    12876: 14:29:43.611 - Shutdown complete...

    12876: 14:29:43.612 - Service shutting down: failed to start application. Errorcode: 108

    12876: 14:29:44.005 - Service shut down complete


    This is a log

  • please provide also PhotonClr.log from bin_Win64/log folder


    best,

    ilya

  • 11292: 08:55:41.149 - ---

    11292: 08:55:41.149 - Service: "Photon Socket Server" starting

    11292: 08:55:41.149 - Config File: E:\Project\Photon5.0\photon-server-sdk_v5-0-12-24499-rc1\deploy\bin_Win64\PhotonServer.config

    11292: 08:55:41.149 - Config|INFO| Adding config path macro: "[CONFIG]" - "E:\Project\Photon5.0\photon-server-sdk_v5-0-12-24499-rc1\deploy\bin_Win64"

    11292: 08:55:41.149 - Config|INFO| Adding config path macro: "[DEPLOY]" - "[CONFIG]\.."

    11292: 08:55:41.149 - Config|INFO| Adding config path macro: "[EXE]" - "E:\Project\Photon5.0\photon-server-sdk_v5-0-12-24499-rc1\deploy\bin_Win64"

    11292: 08:55:41.149 - Will produce at most: 10 crash dumps

    11292: 08:55:41.149 - Construction of service object complete

    11292: 08:55:41.149 - Server Starting...

    11292: 08:55:41.149 -  Tick count: 253115828 (wraps in: 46.7807 days)

    11292: 08:55:41.149 - Tick count 64: 253115828

    11292: 08:55:41.149 - ENet high resolution Tick count: 253115996 (wraps in: 46.7807 days)

    11292: 08:55:41.149 - Photon Version: 5.0.12.7770

    11292: 08:55:41.149 - Photon Build: RELEASE - x64 - VS2019 (16.8) - 192829336

    11292: 08:55:41.149 - PID: 24220

    11292: 08:55:41.149 - EXE: E:\Project\Photon5.0\photon-server-sdk_v5-0-12-24499-rc1\deploy\bin_Win64\PhotonSocketServer.exe

    11292: 08:55:41.149 - OpenSSL 1.1.1i 8 Dec 2020

    11292: 08:55:41.149 - Config File: E:\Project\Photon5.0\photon-server-sdk_v5-0-12-24499-rc1\deploy\bin_Win64\PhotonServer.config

    11292: 08:55:41.149 - Will NOT log unimportant exceptions

    11292: 08:55:41.149 - Performance Counter Configuration for: "Photon Socket Server"

    11292: 08:55:41.149 - CPerformanceCounterInstaller::DumpCounterConfiguration() - Counters are not installed

    11292: 08:55:41.149 - Counters are installed? - "Photon Socket Server"

    11292: 08:55:41.149 - Not using perfmon performance counters as they are not currently installed. Run the service with /InstallCounters to install them.

    11292: 08:55:41.149 - Using in-proc performance counters, access via Interop API only

    11292: 08:55:41.159 - Shutdown timeout enabled: 60000ms

    11292: 08:55:41.159 - Starting I/O thread pool with 4 threads

    25760: 08:55:41.159 - InitialiseWorkerThread - I/O thread - COM enabled

    11292: 08:55:41.159 - ENet: buffer size: 4096

    11292: 08:55:41.159 - ENet: buffer pool: 5000

    11292: 08:55:41.159 - Max message size: 512000

    11292: 08:55:41.159 - CMultiPoolBufferAllocator::GetAllocator() - "CENetThreadPool"

    21928: 08:55:41.159 - InitialiseWorkerThread - I/O thread - COM enabled

    20016: 08:55:41.159 - InitialiseWorkerThread - I/O thread - COM enabled

    4384: 08:55:41.159 - InitialiseWorkerThread - I/O thread - COM enabled

    5388: 08:55:41.159 - Initialise - ENet thread pool thread

    7928: 08:55:41.159 - Initialise - ENet thread pool thread

    26164: 08:55:41.159 - Initialise - ENet thread pool thread

    20964: 08:55:41.159 - Initialise - ENet thread pool thread

    11292: 08:55:41.159 - Starting ENet thread pool with the following settings

    26100: 08:55:41.159 - Initialise - ENet thread pool thread

    11292: 08:55:41.159 - InitialThreads: 8 threads

    11292: 08:55:41.159 - MinThreads: 8 threads

    11292: 08:55:41.159 - Thread pool is fixed size

    11292: 08:55:41.159 - OnlyDispatchTimers: False

    4852: 08:55:41.159 - Initialise - ENet thread pool thread

    19468: 08:55:41.159 - Initialise - ENet thread pool thread

    25420: 08:55:41.159 - Initialise - ENet thread pool thread

    11292: 08:55:42.196 - Resolution ~ 100377 - 10ms

    11292: 08:55:42.196 - ENet timer granularity: 15ms

    11292: 08:55:42.196 - ENet high performance timers: False

    11292: 08:55:42.196 - Config|INFO| TCP S2S: no explicit configuration, using defaults. Add a <S2S> node to configure.

    11292: 08:55:42.196 - Config|INFO| TCP S2S: - flow control: Max queued bytes: 50000

    11292: 08:55:42.196 - Config|INFO| TCP S2S: - flow control: Notification step size: 25

    11292: 08:55:42.196 - Config|INFO| TCP S2S: - no read timeout

    11292: 08:55:42.196 - Config|INFO| TCP S2S: - rate limit: 32000 bytes per 250ms (125KB/sec)

    11292: 08:55:42.196 - Config|INFO| TCP S2S: Nagle: disabled

    11292: 08:55:42.196 - Config|INFO| TCP S2S: PingFrequency: 2500

    11292: 08:55:42.196 - Config|INFO| TCP S2S: MaxInboundMessageSize: 512000

    11292: 08:55:42.196 - Config|INFO| TCP S2S: MaxOutboundMessageSize: 512000

    11292: 08:55:42.196 - Config|INFO| TCP S2S: ConnectTimeout: 30000ms

    11292: 08:55:42.196 - Config|INFO| TCP S2S: No App Data inactivity timeout

    11292: 08:55:42.196 - Config|INFO| TCP S2S: No write completion timeout

    11292: 08:55:42.196 - GetRuntime - About to load CLR - versions available:

    11292: 08:55:42.196 - v2.0.50727

    11292: 08:55:42.196 - v4.0.30319

    11292: 08:55:42.196 - Configuration requests: "v4.0.30319"

    11292: 08:55:42.196 - About to load version: "v4.0.30319"

    11292: 08:55:42.196 - About to load runtime: PhotonHostRuntime.PhotonDomainManager from PhotonHostRuntime, Culture=neutral, PublicKeyToken=02C301B61B060C4D

    11292: 08:55:42.196 - CLRBaseDirectory set to "E:\Project\Photon5.0\photon-server-sdk_v5-0-12-24499-rc1\deploy"

    11292: 08:55:42.196 - Start: About to load CLR - versions available:

    11292: 08:55:42.196 - v2.0.50727

    11292: 08:55:42.196 - v4.0.30319

    11292: 08:55:42.196 - No preference in configuration file, will load latest.

    11292: 08:55:42.196 - About to load version: "v4.0.30319"

    11292: 08:55:42.196 - Using server GC

    11292: 08:55:42.196 - GC: Server garbage collector enabled

    11292: 08:55:42.196 - GC: Concurrent garbage collector enabled

    11292: 08:55:42.196 - GC: Trim on commit disabled

    11292: 08:55:42.196 - Using CLR config file: E:\Project\Photon5.0\photon-server-sdk_v5-0-12-24499-rc1\deploy\bin_Win64\PhotonSocketServer.exe.config

    11292: 08:55:42.196 - Loaded version: "v4.0.30319"

    11292: 08:55:42.306 - Photon host runtime loaded

    11292: 08:55:43.496 - License is valid.

    11292: 08:55:43.496 - Licensed for 100 concurrent connections.

    11292: 08:55:43.496 - ENet: Ping interval: 1000 ms

    11292: 08:55:43.496 - ENet: Data sending delay: 5 ms

    11292: 08:55:43.496 - ENet: ACK sending delay: 5 ms

    11292: 08:55:43.496 - ENet: Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes

    11292: 08:55:43.496 - ENet: Per peer bandwidth limit

    11292: 08:55:43.496 - ENet: Transmit Rate Limit: 256 KB/Sec

    11292: 08:55:43.496 - ENet: Limit period: 200ms

    11292: 08:55:43.496 - ENet: Limit per period: 52428 bytes

    11292: 08:55:43.496 - ENet: Max queued data for transmission per peer: 512000 bytes

    11292: 08:55:43.496 - ENet: Minimum retransmit timeout: 200

    11292: 08:55:43.496 - ENet: No Maximum retransmit timeout

    11292: 08:55:43.496 - ENet: Minimum timeout: 5000ms

    11292: 08:55:43.496 - ENet: Maximum timeout: 30000ms

    11292: 08:55:43.496 - ENet: Max Inbound Reliable Data Queued (awaiting resends of earlier sequence numbers) per peer : 163840 bytes

    11292: 08:55:43.496 - ENet: Will validate inbound ENet datagram CRC if present

    11292: 08:55:43.496 - ENet: No RTT ACK adjustment timeout

    11292: 08:55:43.496 - ENet: Packet throttle enabled: True

    11292: 08:55:43.496 - ENet: Default packet throttle: 32

    11292: 08:55:43.496 - ENet: Packet throttle scale: 32

    11292: 08:55:43.496 - ENet: Packet throttle counter: 7

    11292: 08:55:43.496 - ENet: Round Trip throttle multiplier: 2

    11292: 08:55:43.496 - ENet: Unreliable Queue timeout: 5ms

    11292: 08:55:43.496 - ENet: AO: Initial queue size: 4096

    11292: 08:55:43.496 - ENet: AO: Max consecutive ops: 200

    11292: 08:55:43.496 - ENet: max pooled buffers in peer: 10

    11292: 08:55:43.496 - ENet: Packet trace ring buffer size: 10

    11292: 08:55:43.496 - ENet: No Application data inactivity timeout

    11292: 08:55:43.496 - CMultiPoolBufferAllocator::GetAllocator() - "CENetHost"

    11292: 08:55:43.496 - Config|INFO| New TCP: Max message size: 512000

    11292: 08:55:43.496 - About to load application: NameServer from PhotonServer

    11292: 08:55:44.755 - Taking reference on default app domain

    11292: 08:55:44.825 - ERROR: Failed to start application: "NameServer" in app domain: 2

    11292: 08:55:44.825 - CService::OnException() - Exception: CManagedHost::StartApplication() - Failed to start application in AppDomain: 2 - 系统找不到指定的文件。

    20700: 08:55:44.825 - CManagedHost::OnDefaultAction() - OPR_AppDomainUnload - eUnloadAppDomain

    11292: 08:55:44.825 - Server shutting down...

    11292: 08:55:44.825 - Shutdown monitoring enabled, 60000ms before process abort

    11292: 08:55:44.825 - Notifying CLR applications of shutdown...

    11292: 08:55:44.825 - RequestStop: defalt app domain

    11292: 08:55:44.825 - Shutting down NEW TCP Outbound Connection Manager...

    11292: 08:55:44.825 - Shutting down ENet host...

    11292: 08:55:44.825 - Disconnecting all peers...

    11292: 08:55:44.825 - Shutting down socket servers...

    11292: 08:55:44.825 - Shutting down ENet thread pool...

    11292: 08:55:44.825 - Shutting down TCP inactivity timers...

    11292: 08:55:44.825 - Timer queue stats: TCP Timers

    11292: 08:55:44.825 - Stats are not available

    11292: 08:55:44.825 - Shutting down ENet timers...

    11292: 08:55:44.825 - Waiting for socket servers to shutdown...

    11292: 08:55:44.825 - Shutting down I/O thread pool...

    11292: 08:55:44.825 - Shutting down CLR applications...

    11292: 08:55:44.825 - Shutting down network data traces...

    11292: 08:55:44.825 - Waiting for network data traces to complete...

    11292: 08:55:44.825 - Destroying servers

    11292: 08:55:44.825 - Destroying WebRTC Outbound Connection Manager

    11292: 08:55:44.825 - Destroying WebRTC Outbound Host

    11292: 08:55:44.825 - Destroying outbound ICE connection manager

    11292: 08:55:44.825 - Destroying ENet timer wheel

    11292: 08:55:44.825 - Timer queue stats: ENetTimerWheel

    11292: 08:55:44.825 - Stats are not available

    11292: 08:55:44.825 - Destroying Network Data Trace factory

    11292: 08:55:44.825 - Destroying ENet host

    11292: 08:55:44.825 - Destroying WebRTC inactivity timer queue

    11292: 08:55:44.825 - Destroying WebRTC host

    11292: 08:55:44.825 - Destroying ICE connection manager

    11292: 08:55:44.825 - Flushing stream socket allocator...

    11292: 08:55:44.825 - Flushing UDP Chunk datagram socket allocator...

    11292: 08:55:44.825 - Flushing NEW TCP socket allocator...

    11292: 08:55:44.825 - Destroying TCP inactivity timer

    11292: 08:55:44.825 - Flushing ENET buffer allocator...

    11292: 08:55:44.825 - Flushing TCP buffer allocator...

    11292: 08:55:44.825 - Flushing TCP buffer handle allocator...

    11292: 08:55:44.825 - Destroying CLR applications

    11292: 08:55:44.825 - ~CCLRApplicationCollection() - Waiting up to 10 seconds for the CLR to release all of our objects

    20700: 08:55:44.835 - CManagedHost::OnDomainUnload() - 2

    11292: 08:55:44.835 - ~CCLRApplicationCollection() - Done. All objects released

    11292: 08:55:44.835 - ~CManagedHost() - Release default app domain

    11292: 08:55:44.835 - CManagedHost::OnDomainUnload() - 1

    11292: 08:55:44.835 - ~CManagedHost() - Waiting up to 10 seconds for CLR shutdown...

    11292: 08:55:44.845 - ~CManagedHost

    11292: 08:55:44.845 - Destroying ENet thread pool

    11292: 08:55:44.845 - Destroying I/O thread pool

    11292: 08:55:44.845 - Destroying HTTP File Server I/O thread pool

    11292: 08:55:44.845 - Destroying ENet I/O thread pool

    11292: 08:55:44.845 - Destroying ENet buffer allocator

    11292: 08:55:44.845 - Destroying TCP buffer allocator

    11292: 08:55:44.845 - Destroying TCP socket allocator

    11292: 08:55:44.845 - Destroying NEW TCP socket allocator

    11292: 08:55:44.845 - Destroying NEW TCP configuration

    11292: 08:55:44.845 - Config|INFO| New TCP: Flushing TCP socket allocator...

    11292: 08:55:44.845 - Config|INFO| New TCP: Flushing TCP buffer allocator...

    11292: 08:55:44.845 - Config|INFO| New TCP: Flushing TCP buffer handle allocator...

    11292: 08:55:44.845 - Config|INFO| New TCP: Flushing policy file buffer allocator...

    11292: 08:55:44.845 - Destroying UDP Chunk inbound socket allocator

    11292: 08:55:44.845 - Destroying shared datagram flow control data

    11292: 08:55:44.845 - Shutdown complete...

    11292: 08:55:44.845 - Service shutting down: failed to start application. Errorcode: 108

    11292: 08:55:45.225 - Service shut down complete

    ---------------------------------------------------------------------------------------------------------------------------

    This is all the logs that have been run once again today

  • next to this file should be PhotonCLR.log it contains some information about loading. I do not see errors in your setup. so, it might be that it can not find some other dll that you depend on.

    best,

    ilya

  • I found the problem

    2022-10-31 08:52:40,965 [ 9] ERROR PhotonHostRuntime.PhotonLicensing - Connect to Photon License Server failed, can't verify floating license.

    This is PhotonCLR.log Log inside

    But I have a license for 100 servers,Is there a time limit for this license, because it can run without problems at first, but it has been a little long, and now it can't run

  • hi, @Eaer

    I think it is something with connection it self not with license. You can try to download new one


    best,

    ilya

  • I have downloaded a new one, and it will still be the same

    I'm still running the official website case(LoadBalancing),It will be the same

  • as far as I can see it is connection issue not license. For some reason neither licensespch.exitgames.com nor licensesp.exitgames.com are accessible


    best,

    ilya

  • Hello, we have found the relevant problem! When linking to the license, you have to use the external network. The company has restrictions. I want to ask what domain name is used when linking this license. I want to get this domain name, and let the company open the access to this domain name, so that my license can be passed and the server can be started smoothly

  • hi, @Eaer

    licensesp.exitgames.com


    best,

    ilya