i have a problem ,my photon can not running, failed to load PhotonLicensing.dll

hi,i have a problem
Photon is running good in a few days ,but my photonserver can not be run now,and I don't see a file need to unlock
I tried run photon in other computer ,It runs very well
Or may be my computer environment problems, such as a port being used
And I downloaded the latest version of the SDK in website,also get the same results
this is log error--> failed to load PhotonLicensing.dll. Going to shutdown.
Who Can give me some suggestions,thanks
----------------------------------------------------------------------------------------
3080: 14:38:20.744 - ---
3080: 14:38:20.744 - Service: "Photon Socket Server" starting
3080: 14:38:20.778 - Config File: G:\unity3dProject\photonServer\Photon-OnPremise-Server-SDK_v3-4-28-8401\deploy\bin_Win64\PhotonServer.config
3080: 14:38:21.578 - Will produce at most: 10 crash dumps
3080: 14:38:21.699 - Action: run as exe
3080: 14:38:22.022 - Server Starting...
3080: 14:38:22.147 - Tick count: 18773987 (wraps in: 49.493 days)
3080: 14:38:22.147 - Tick count 64: 18774111
3080: 14:38:22.147 - Photon Version: 3.4.5.2597
3080: 14:38:22.147 - PID: 2800
3080: 14:38:22.243 - Config File: G:\unity3dProject\photonServer\Photon-OnPremise-Server-SDK_v3-4-28-8401\deploy\bin_Win64\PhotonServer.config
3080: 14:38:22.246 - Will NOT log unimportant exceptions
3080: 14:38:23.076 - Not using performance counters as they are not currently installed. Run the service with /InstallCounters to install them.
3080: 14:38:23.138 - Shutdown timeout enabled: 30000ms
3080: 14:38:23.263 - Starting I/O thread pool with 2 threads
3080: 14:38:23.346 - Using Standard allocator
3080: 14:38:23.510 - Max message size: 512000
3080: 14:38:23.705 - Starting business logic thread pool with the following settings
3080: 14:38:23.705 - InitialThreads: 4 threads
3080: 14:38:23.705 - MinThreads: 4 threads
3080: 14:38:23.705 - Thread pool is fixed size
3080: 14:38:23.706 - Starting ENet thread pool with the following settings
3080: 14:38:23.706 - InitialThreads: 2 threads
3080: 14:38:23.706 - MinThreads: 2 threads
3080: 14:38:23.706 - Thread pool is fixed size
3080: 14:38:23.707 - OnlyDispatchTimers: False
3080: 14:38:23.707 - S2S: flow control: Max pending writes: 50
3080: 14:38:23.707 - S2S: flow control: Max queued buffers: 200
3080: 14:38:23.800 - S2S: flow control: Max pending writes MUX: 500
3080: 14:38:23.800 - S2S: flow control: Max queued buffers MUX: 2000
3080: 14:38:23.800 - S2S: MaxInboundMessageSize: 512000
3080: 14:38:23.800 - S2S: MaxOutboundMessageSize: 512000
3080: 14:38:23.800 - S2S: No inactivity timeout
3080: 14:38:23.994 - WebSocket S2S: MaxInboundMessageSize: 512000
3080: 14:38:23.994 - WebSocket S2S: MaxOutboundMessageSize: 512000
3080: 14:38:23.994 - WebSocket S2S: No inactivity timeout
3080: 14:38:24.069 - Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes
3080: 14:38:24.069 - Per peer bandwidth limit
3080: 14:38:24.069 - Transmit Rate Limit: 256 KB/Sec
3080: 14:38:24.069 - Limit period: 200ms
3080: 14:38:24.069 - Limit per period: 52428 bytes
3080: 14:38:24.069 - Max queued data for transmission per peer: 512000 bytes
3080: 14:38:24.069 - Minimum retransmit timeout: 200
3080: 14:38:24.069 - Minimum ENet timeout: 5000ms
3080: 14:38:24.069 - Maximum ENet timeout: 30000ms
3080: 14:38:24.069 - Max Inbound Reliable Data Queued (awaiting resends of earlier sequence numbers) per peer : 163840 bytes
3080: 14:38:24.069 - Outbound ENet: MaxInboundMessageSize: 512000
3080: 14:38:24.069 - Outbound ENet: MaxOutboundMessageSize: 512000
3080: 14:38:24.159 - GetRuntime - About to load CLR - versions available:
3080: 14:38:24.159 - v2.0.50727
3080: 14:38:24.159 - v4.0.30319
3080: 14:38:24.159 - Configuration requests: "v2.0.50727"
3080: 14:38:24.159 - About to load version: "v2.0.50727"
3080: 14:38:24.292 - About to load runtime: PhotonHostRuntime.PhotonDomainManager from PhotonHostRuntime, Culture=neutral, PublicKeyToken=02C301B61B060C4D
3080: 14:38:24.293 - CLRBaseDirectory set to "G:\unity3dProject\photonServer\Photon-OnPremise-Server-SDK_v3-4-28-8401\deploy"
3080: 14:38:24.293 - Optimising event broadcast for 20 or more peers
3080: 14:38:24.303 - Start: About to load CLR - versions available:
3080: 14:38:24.303 - v2.0.50727
3080: 14:38:24.303 - v4.0.30319
3080: 14:38:24.303 - No preference in configuration file, will load latest.
3080: 14:38:24.303 - About to load version: "v4.0.30319"
3080: 14:38:24.333 - Loaded version: "v4.0.30319"
3080: 14:38:25.564 - Photon host runtime loaded
3080: 14:38:25.697 - ERROR: failed to load PhotonLicensing.dll. Going to shutdown.
3080: 14:38:25.698 - License has expired.
3080: 14:38:25.715 - Server shutting down...
3080: 14:38:25.715 - Shutdown monitoring enabled, 30000ms before process abort
3080: 14:38:25.716 - Notifying CLR applications of shutdown...
3080: 14:38:25.716 - RequestStop: defalt app domain
3080: 14:38:25.719 - Shutting down WebSocket Outbound Connection Manager...
3080: 14:38:25.723 - Shutting down TCP Outbound Connection Manager...
3080: 14:38:25.735 - Shutting down ENet Outbound Connection Manager...
3080: 14:38:25.735 - Disconnecting all outbound peers...
3080: 14:38:25.735 - Shutting down socket servers...
3080: 14:38:25.735 - Shutting down ENet thread pool...
3080: 14:38:25.735 - Shutting down TCP inactivity timers...
3080: 14:38:25.735 - Shutting down CLR applications...
3080: 14:38:25.739 - Shutting down business logic thread pool...
3080: 14:38:25.739 - Shutting down I/O thread pool...

-------------------------------------------------------------------------------------------------------------------------
2017-04-09 14:38:25,491 [ 1] INFO PhotonHostRuntime.PhotonDomainManager - Initialize: ApplicationName = 'DefaultDomain', DomainID = '1'
2017-04-09 14:38:25,562 [ 1] INFO PhotonHostRuntime.PhotonDomainManager - AppDomains with unhandled exceptions are usually not unloaded and restarted.
2017-04-09 14:38:25,572 [ 1] INFO PhotonHostRuntime.PhotonDomainManager - Getting license information:
2017-04-09 14:38:25,690 [ 1] ERROR PhotonHostRuntime.PhotonDomainManager - Failed to get PhotonLicensing instance: 调用的目标发生了异常。
2017-04-09 14:38:25,692 [ 1] ERROR PhotonHostRuntime.PhotonDomainManager - ERROR: failed to load PhotonLicensing.dll. Going to shutdown.
2017-04-09 14:38:25,718 [ 1] INFO PhotonHostRuntime.PhotonDomainManager - RequestStop: ApplicationName = 'DefaultDomain', DomainId='1'

Answers

  • hi, @mianbao
    please take a look at this instructions. it might be that your file is blocked
    https://www.limilabs.com/blog/unblock-dll-file
    best,
    ilya
  • i try use Photon-OnPremise-Server-SDK_v4-0-29-11263 And 1047120490@qq.com.Photon-vX.free.100-ccu,
    And I tried to unlock but still not start, an error is the same
  • hi, @mianbao
    this magic bug from time to time happens on user machines and we do not really sure what is going one. :(
    here is some questions to you:
    1. what Windows Platform are you using?
    2. 32 or 64 bit?
    3. what photon executable do you start from bin_Win32 or from bin_Win64?
    4. what folder did you choose for photon?

    best,
    ilya
  • window7 64bit,
    start from bin_Win64
    photonServer+unity+mysql
    my serverProject language use c#
    AntiVirus:腾讯的电脑管家