When I use "sqlLoby type" on my game , my Photon server throw " Unable to load DLL 'SQLit" exception
Options
jesn
✭
I installed "v4.0.29.11263.exe Photon " on my win2012 R2 , and installed "Microsoft .NET Framework 4.5" on win server.
Now , when i run use "sqlLoby type" on my game client , server throw this error.
2016-06-09 12:28:49,378 [30] ERROR Photon.SocketServer.PeerBase - exception during handling of data.Peer:T:MasterClientPeer,ConnId:402,ip:218.45.75.23:16438, Data: F3-02-E5-00-02-D5-73-00-07-6D-79-4C-6F-62-62-79-D4-62-02,
Exception:System.DllNotFoundException: Unable to load DLL 'SQLite.Interop.dll': 应用程序无法启动,因为应用程序的并行配置不正确。有关详细信息,请参阅应用程序事件日志,或使用命令行 sxstrace.exe 工具。 (Exception from HRESULT: 0x800736B1)
at System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(SQLiteConfigOpsEnum op)
at System.Data.SQLite.SQLite3.StaticIsInitialized() in c:\dev\sqlite\dotnet\System.Data.SQLite\SQLite3.cs:line 1908
at System.Data.SQLite.SQLiteLog.Initialize() in c:\dev\sqlite\dotnet\System.Data.SQLite\SQLiteLog.cs:line 139
at System.Data.SQLite.SQLiteConnection..ctor(String connectionString, Boolean parseViaFramework) in c:\dev\sqlite\dotnet\System.Data.SQLite\SQLiteConnection.cs:line 530
at Photon.LoadBalancing.MasterServer.Lobby.GameTable..ctor(Int32 columnCount, String columnPrefix) in d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\Lobby\GameDataBase.cs:line 39
at Photon.LoadBalancing.MasterServer.Lobby.SqlGameList..ctor(AppLobby lobby) in d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\Lobby\SqlGameList.cs:line 29
at Photon.LoadBalancing.MasterServer.Lobby.AppLobby..ctor(GameApplication application, String lobbyName, AppLobbyType lobbyType, Int32 maxPlayersDefault, TimeSpan joinTimeOut) in d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\Lobby\AppLobby.cs:line 107
at Photon.LoadBalancing.MasterServer.Lobby.LobbyFactory.CreateAppLobby(String lobbyName, AppLobbyType lobbyType) in d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\Lobby\LobbyFactory.cs:line 125
at Photon.LoadBalancing.MasterServer.Lobby.LobbyFactory.GetOrCreateAppLobby(String lobbyName, AppLobbyType lobbyType, AppLobby& lobby) in d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\Lobby\LobbyFactory.cs:line 61
at Photon.LoadBalancing.MasterServer.MasterClientPeer.HandleJoinLobby(OperationRequest operationRequest, SendParameters sendParameters) in d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\MasterClientPeer.cs:line 535
at Photon.SocketServer.Rpc.Peer.OnOperationRequest(OperationRequest operationRequest, SendParameters sendParameters) in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\Rpc\Peer.cs:line 110
at Photon.SocketServer.PeerBase.OnReceive(Byte[] data, SendParameters sendParameters) in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\PeerBase.cs:line 1243
at Photon.SocketServer.PeerBase.OnReceiveInternal(Byte[] data, SendParameters sendParameters, Int32 rtt, Int32 rttVariance, Int32 numFailures) in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\PeerBase.cs:line 988
Now , when i run use "sqlLoby type" on my game client , server throw this error.
2016-06-09 12:28:49,378 [30] ERROR Photon.SocketServer.PeerBase - exception during handling of data.Peer:T:MasterClientPeer,ConnId:402,ip:218.45.75.23:16438, Data: F3-02-E5-00-02-D5-73-00-07-6D-79-4C-6F-62-62-79-D4-62-02,
Exception:System.DllNotFoundException: Unable to load DLL 'SQLite.Interop.dll': 应用程序无法启动,因为应用程序的并行配置不正确。有关详细信息,请参阅应用程序事件日志,或使用命令行 sxstrace.exe 工具。 (Exception from HRESULT: 0x800736B1)
at System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(SQLiteConfigOpsEnum op)
at System.Data.SQLite.SQLite3.StaticIsInitialized() in c:\dev\sqlite\dotnet\System.Data.SQLite\SQLite3.cs:line 1908
at System.Data.SQLite.SQLiteLog.Initialize() in c:\dev\sqlite\dotnet\System.Data.SQLite\SQLiteLog.cs:line 139
at System.Data.SQLite.SQLiteConnection..ctor(String connectionString, Boolean parseViaFramework) in c:\dev\sqlite\dotnet\System.Data.SQLite\SQLiteConnection.cs:line 530
at Photon.LoadBalancing.MasterServer.Lobby.GameTable..ctor(Int32 columnCount, String columnPrefix) in d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\Lobby\GameDataBase.cs:line 39
at Photon.LoadBalancing.MasterServer.Lobby.SqlGameList..ctor(AppLobby lobby) in d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\Lobby\SqlGameList.cs:line 29
at Photon.LoadBalancing.MasterServer.Lobby.AppLobby..ctor(GameApplication application, String lobbyName, AppLobbyType lobbyType, Int32 maxPlayersDefault, TimeSpan joinTimeOut) in d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\Lobby\AppLobby.cs:line 107
at Photon.LoadBalancing.MasterServer.Lobby.LobbyFactory.CreateAppLobby(String lobbyName, AppLobbyType lobbyType) in d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\Lobby\LobbyFactory.cs:line 125
at Photon.LoadBalancing.MasterServer.Lobby.LobbyFactory.GetOrCreateAppLobby(String lobbyName, AppLobbyType lobbyType, AppLobby& lobby) in d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\Lobby\LobbyFactory.cs:line 61
at Photon.LoadBalancing.MasterServer.MasterClientPeer.HandleJoinLobby(OperationRequest operationRequest, SendParameters sendParameters) in d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\MasterServer\MasterClientPeer.cs:line 535
at Photon.SocketServer.Rpc.Peer.OnOperationRequest(OperationRequest operationRequest, SendParameters sendParameters) in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\Rpc\Peer.cs:line 110
at Photon.SocketServer.PeerBase.OnReceive(Byte[] data, SendParameters sendParameters) in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\PeerBase.cs:line 1243
at Photon.SocketServer.PeerBase.OnReceiveInternal(Byte[] data, SendParameters sendParameters, Int32 rtt, Int32 rttVariance, Int32 numFailures) in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\PeerBase.cs:line 988
0
Comments
-
could you try to load this dll from test project on your machine. does it work?
may it be that somehow win32 and win64 versions are mixed?0