Help Me! ERROR Photon.Hive.Plugin.PluginManager - System.IO.FileNotFoundException

Options
game_dev_21
edited January 2022 in Photon Server

Hi Coders,

I have been trying to implement custom logic with custom[self hosted] server plugin. I have followed the Step-by-Step guide(LINK-https://doc.photonengine.com/en-us/server/current/plugins/getting-started) thoroughly for 2-3 times. But I always receive the following Logs while creating the room:

2022-01-10 18:40:46,441 [26] DEBUG Photon.Hive.Room - Release for room:RandomRoom, RemovePath:;BeforeRemoveFromCacheCalled(1:10:46 PM);BeforeRemoveFromCacheActionCalled(1:10:46 PM);ProcessBeforeCloseGameCalled(1:10:46 PM);ProcessBeforeCloseGameCalledEmptyRoomLiveTimeLECalled(1:10:46 PM);TriggerPluginOnCloseCalled(1:10:46 PM);ProcessCloseGameCalled(1:10:46 PM);TryRemoveRoomFromCacheCalled(1:10:46 PM)
2022-01-10 18:40:46,442 [26] DEBUG Photon.Hive.Room - Tried to remove room: roomName=RandomRoom, removed=True
2022-01-10 18:40:46,443 [26] DEBUG Photon.Hive.Room - Disposing room 'RandomRoom', dispose:True
2022-01-10 18:40:46,449 [26] DEBUG Photon.LoadBalancing.GameServer.GameUpdatesBatcher - Flush for appId:, version:
2022-01-10 18:40:46,468 [30] DEBUG Photon.LoadBalancing.GameServer.GameClientPeer - Auth Timeout Checker stopped. authTimeout:20000 p:GameClientPeer: PID: 2, IsConnected: False, IsDisposed: False, Last Activity: Operation 227 at UTC 2022-01-10T13:10:46, in Room '', IP 127.0.0.1:58410, NetworkProtocol Udp, Protocol GpBinaryV18, JoinStage: 0 
2022-01-10 18:40:46,469 [30] DEBUG Photon.Hive.HivePeer - OnDisconnect: conId=2, reason=0, reasonDetail=
2022-01-10 18:40:46,469 [30] DEBUG Photon.Hive.HivePeer - RemovePeerFromCurrentRoom: Room Reference is null for p:GameClientPeer: PID: 2, IsConnected: False, IsDisposed: False, Last Activity: Operation 227 at UTC 2022-01-10T13:10:46, in Room '', IP 127.0.0.1:58410, NetworkProtocol Udp, Protocol GpBinaryV18, JoinStage: 0 
2022-01-10 18:40:46,883 [29] DEBUG Photon.LoadBalancing.GameServer.MasterServerConnectionBase - Sending event to master. EventCode=2, ConnectionId=b1c5b330-a5ac-4848-bd21-31604201ad13
2022-01-10 18:41:56,013 [32] DEBUG Photon.LoadBalancing.GameServer.GameApplication - CreatePeer for a09fa1b1-bcc1-4109-9a79-a30a7c32
2022-01-10 18:41:56,013 [32] DEBUG Photon.LoadBalancing.GameServer.GameApplication - incoming game peer at 127.0.0.1:5056 from 127.0.0.1:49582
2022-01-10 18:41:56,014 [32] DEBUG Photon.LoadBalancing.GameServer.GameClientPeer - Auth Timeout Checker scheduled. authTimeout:20000 p:GameClientPeer: PID: 6, IsConnected: False, IsDisposed: False, Last Activity: Operation 0 at UTC 0001-01-01T00:00:00, in Room '', IP 127.0.0.1:49582, NetworkProtocol Udp, Protocol GpBinaryV18, JoinStage: 0 
2022-01-10 18:41:56,107 [26] DEBUG Photon.LoadBalancing.GameServer.GameClientPeer - OnOperationRequest: conId=6, opCode=230
2022-01-10 18:41:56,107 [26] DEBUG Photon.LoadBalancing.GameServer.GameClientPeer - Auth Timeout Checker stopped. authTimeout:20000 p:GameClientPeer: PID: 6, IsConnected: True, IsDisposed: False, Last Activity: Operation 230 at UTC 2022-01-10T13:11:56, in Room '', IP 127.0.0.1:49582, NetworkProtocol Udp, Protocol GpBinaryV18, JoinStage: 0 
2022-01-10 18:41:56,107 [26] DEBUG Photon.LoadBalancing.GameServer.GameClientPeer - Token Validation: checking token with GS: localhost and GameId:RandomRoom
2022-01-10 18:41:56,140 [28] DEBUG Photon.LoadBalancing.GameServer.GameClientPeer - OnOperationRequest: conId=6, opCode=227
2022-01-10 18:41:56,141 [28] DEBUG Photon.Hive.HivePeer - OnOperationRequest. Code=227
2022-01-10 18:41:56,141 [28] DEBUG Photon.Hive.Caching.RoomCacheBase - Created room instance reference: roomName=RandomRoom, referenceCount=1
2022-01-10 18:41:56,142 [28] ERROR Photon.Hive.Plugin.PluginManager - System.IO.FileNotFoundException : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
Stack Trace:
  at MyFirstPlugin.MyPluginFactory.CreatePlugin(String pluginName)
  at Photon.Hive.Plugin.PluginFactoryBase.Create(IPluginHost gameHost, String pluginName, Dictionary`2 config, String& errorMsg)
  at Photon.Hive.Plugin.PluginManager.CreatePluginWithFactory(IPluginHost sink, String pluginName)
  at Photon.Hive.Plugin.PluginManager.GetGamePlugin(IPluginHost sink, String pluginName)

2022-01-10 18:41:56,143 [28] DEBUG Photon.Hive.Plugin.CreateGameCallInfo - Fail: System.IO.FileNotFoundException : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
Stack Trace:
  at MyFirstPlugin.MyPluginFactory.CreatePlugin(String pluginName)
  at Photon.Hive.Plugin.PluginFactoryBase.Create(IPluginHost gameHost, String pluginName, Dictionary`2 config, String& errorMsg)
  at Photon.Hive.Plugin.PluginManager.CreatePluginWithFactory(IPluginHost sink, String pluginName)
  at Photon.Hive.Plugin.PluginManager.GetGamePlugin(IPluginHost sink, String pluginName)

2022-01-10 18:41:56,143 [27] DEBUG Photon.Hive.HivePeer - RemovePeerFromCurrentRoom: Removing peer from room. p:GameClientPeer: PID: 6, IsConnected: True, IsDisposed: False, Last Activity: Operation 227 at UTC 2022-01-10T13:11:56, in Room 'RandomRoom', IP 127.0.0.1:49582, NetworkProtocol Udp, Protocol GpBinaryV18, JoinStage: 0 
2022-01-10 18:41:56,143 [27] DEBUG Photon.Hive.Caching.RoomCacheBase - Removed room instance reference: roomName=RandomRoom, referenceCount=0
2022-01-10 18:41:56,143 [27] DEBUG Photon.Hive.Caching.RoomCacheBase - Room has no references. Trying to remove it. room:RandomRoom



Answers

  • chvetsov
    Options

    hi, @game_dev_21


    you have issues with plugin setup, not with client setup.

    so, please provide content of your plugin.config and also where did you deploy your plugin. I mean where did you put it on the disc


    best,

    ilya