I have developed a game in unity3d version 2019.1.1 which uses SQLconnector to establish connection to (localhost) DB , get and transfer data back and fourth. When im running the game from the platform everything works fine , but when i build the game for WEBGL and run it from the browser i get this exception from the browser's console :
System.TypeInitializationException: The type initializer for
'MySql.Data.MySqlClient.Replication.ReplicationManager' threw an
exception. ---> System.TypeInitializationException: The type initializer
for 'MySql.Data.MySqlClient.MySqlConfiguration' threw an exception. --->
System.NotSupportedException:
System.Configuration.ConfigurationManager::GetSection
also i get this error:
MySql.Data.MySqlClient.MySqlException (0x80004005): Exception of type
'MySql.Data.MySqlClient.MySqlException' was thrown. --->
System.Net.Sockets.SocketException (0x80004005): Success
at System.Net.Sockets.Socket..ctor (System.Net.Sockets.AddressFamily
addressFamily, System.Net.Sockets.SocketType socketType,
System.Net.Sockets.ProtocolType protocolType) [0x00000] in
<00000000000000000000000000000000>:0
at MySql.Data.MySqlClient.NativeDriver.Open () [0x00000] in
<00000000000000000000000000000000>:0
I have downloaded mysql connector dll's from microsoft's site. "mysql-connector-net-8.0.16-noinstall"
I have also included the files :
"all I18N" in my plugins , as been stated from various answers in this subject".
Scripting runtime version : 4.X net API compatible : 4.X v2 net
What am i missing ?
User contributions licensed under CC BY-SA 3.0