Windows Standalone and MySQL: NotSupportedException
Hey guys, I've added MySQL to my project and built it. If I run the game in editor everything works as it should. As soon as I start the build, the moment the database script is loaded, the game crashes. Stacktrace below. I read that some other users have the same problem but unfortunately there was no solution.
Does anyone know the cause for that and how to fix it?
Or did anyone setup a working build with MySQL and could post the details?
Unity version: 2020.1.0f1
MySQLConnector/NET version: 6.9.8 (selected DLLs from directory v2.0)
Stacktrace:
NotSupportedException: System.Configuration.ConfigurationManager::GetSection System.Configuration.ConfigurationManager.GetSection (System.String sectionName) (at :0) > MySql.Data.MySqlClient.Replication.ReplicationManager..cctor > () (at > :0) > MySql.Data.MySqlClient.MySqlConnection.Open > () (at > :0) > Database.GetShipFromName > (System.String name) (at > :0) > ShipBehaviour.Start () (at > :0) > Rethrow as > TypeInitializationException: The type > initializer for > 'MySql.Data.MySqlClient.MySqlConfiguration' > threw an exception. > MySql.Data.MySqlClient.Replication.ReplicationManager..cctor > () (at > :0) > MySql.Data.MySqlClient.MySqlConnection.Open > () (at > :0) > Database.GetShipFromName > (System.String name) (at > :0) > ShipBehaviour.Start () (at > :0) > Rethrow as > TypeInitializationException: The type > initializer for > 'MySql.Data.MySqlClient.Replication.ReplicationManager' > threw an exception. > MySql.Data.MySqlClient.MySqlConnection.Open > () (at > :0) > Database.GetShipFromName > (System.String name) (at > :0) > ShipBehaviour.Start () (at > :0)
Are all the SQL dlls inside the plugins folder in your hirerchy?
Yes, it is$$anonymous$$ySQLConnector/NET version: 6.9.8 (selected DLLs from directory v2.0)
but it is getting copied to the build folder, right? you can locate it under /YourApp/YourApp_data/$$anonymous$$anaged/ I have seem some ppl found this issue when using ilc2pp or stripping code setting enable, could you confirm the library is in that path?