alvyxaz / barebones-masterserver

Master Server framework for Unity
475 stars 106 forks source link

PostgreSQL problem #219

Open Schaffen-m opened 5 years ago

Schaffen-m commented 5 years ago

I use net 4.6 in my project. It works well with the default msf, and also works when you apply postgreSQL DB and run it in Unity Editor. But it`s not working!! run the project after building it, the master server will not be connected. log is failed handshake

I have already verified the link https://github.com/alvyxaz/barebones-masterserver/issues/143. The problem is the same when I switch to Unitynpg ... I keep failing in handshake.

2018-08-30 PM 6:06:07|Fatal|WebSocket.connect:0|System.TypeLoadException: Could not load type of field 'System.Net.Security.SslStream:provider' (0) due to: Could not resolve type with token 01000035 (from typeref, class/assembly Mono.Security.Interface.MonoTlsProvider, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756) assembly:Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 type:Mono.Security.Interface.MonoTlsProvider member: at WebSocketSharp.WebSocket.doHandshake () [0x00001] in a29d2a08136e4c588525d5526f71fba4:0 at WebSocketSharp.WebSocket.connect () [0x0004f] in a29d2a08136e4c588525d5526f71fba4:0

Schaffen-m commented 5 years ago

the problem is solved. The target of mono security and system data is net 3.5. I took it from mono and switched it to 4.x. It works. But something is sad. Because npgsql is target3.5. Where can I get NPGSQL.DLL version target4.x?

Schaffen-m commented 5 years ago

https://www.nuget.org/packages/Npgsql/