il2cpp+mysql error

Hello. I get an exception when building il2cpp + MySql.Data . How to solve it?

Error:

NotSupportedException: System.Configuration.ConfigurationManager::GetSection
at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <00000000000000000000000000000000>:0
at MySql.Data.MySqlClient.MySqlConfiguration…cctor () [0x00000] in <00000000000000000000000000000000>:0
at MySql.Data.MySqlClient.Replication.ReplicationManager…cctor () [0x00000] in <00000000000000000000000000000000>:0
at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000] in <00000000000000000000000000000000>:0
at Server.Start () [0x00000] in <00000000000000000000000000000000>:0
Rethrow as TypeInitializationException: The type initializer for ‘MySql.Data.MySqlClient.MySqlConfiguration’ threw an exception.
at MySql.Data.MySqlClient.Replication.ReplicationManager…cctor () [0x00000] in <00000000000000000000000000000000>:0
at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000] in <00000000000000000000000000000000>:0
at Server.Start () [0x00000] in <00000000000000000000000000000000>:0
Rethrow as TypeInitializationException: The type initializer for ‘MySql.Data.MySqlClient.Replication.ReplicationManager’ threw an exception.
at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000] in <00000000000000000000000000000000>:0
at Server.Start () [0x00000] in <00000000000000000000000000000000>:0

(Filename: currently not available on il2cpp Line: -1)

Unfortunately the ConfigurationManager class is not supported with IL2CPP. So I don’t believe that this will work.

I have a similar issue, but I switched to mono from il2cpp. In the editor, it works fine. However, in the build I get the error below. What I am not understanding is why, as at one point I was able to build and the only issue was the password was rejected by the server. It turned out the issue was actually with the account, but now I cannot seem to get it back to connecting in a build.

PlatformNotSupportedException: Operation is not supported on this platform.
at MySql.Data.MySqlClient.MySqlConfiguration…cctor () [0x00000] in <5bcfdf23711c4d2fa921347752c12a65>:0
Rethrow as TypeInitializationException: The type initializer for ‘MySql.Data.MySqlClient.MySqlConfiguration’ threw an exception.
at MySql.Data.MySqlClient.Replication.ReplicationManager…cctor () [0x0001e] in <5bcfdf23711c4d2fa921347752c12a65>:0
Rethrow as TypeInitializationException: The type initializer for ‘MySql.Data.MySqlClient.Replication.ReplicationManager’ threw an exception.
at MySql.Data.MySqlClient.MySqlConnection.Open () [0x0016f] in <5bcfdf23711c4d2fa921347752c12a65>:0
at SqlWrapper.OpenConnection () [0x000e3] in <27330cd32c5c4c4fa8e2276c859ae194>:0
at SqlWrapper.ServerRoomDataExists (System.String localName, System.String infoName, System.String setName) [0x0000d] in <27330cd32c5c4c4fa8e2276c859ae194>:0
at SceneLoadFunctions.b__41_0 () [0x00033] in <27330cd32c5c4c4fa8e2276c859ae194>:0
at HostMenuScreen.OnRender () [0x006af] in <27330cd32c5c4c4fa8e2276c859ae194>:0
at MenuScreen.ProcessRender () [0x00012] in <27330cd32c5c4c4fa8e2276c859ae194>:0
at SceneLoadFunctions.OnGUI () [0x00088] in <27330cd32c5c4c4fa8e2276c859ae194>:0

My point being that I know it can be done. I just need to find the settings that it worked with before.

mysql.data.mysqlclient.dll
mono
.NET 4
build android
its work perfect on android device. login form

but if change mono to IL2CPP and install to android device I cant login