我用unity3d版本2019.1.1开发了一个游戏,该游戏使用SQLconnector建立与(localhost)DB的连接,获取并向后传输数据。 当我从平台运行游戏时,一切正常,但是当我为WEBGL构建游戏并从浏览器运行时,我从浏览器的控制台获取了此异常:
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
我也收到此错误:
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
我已经从Microsoft网站下载了mysql连接器dll。 “ mysql-connector-net-8.0.16-noinstall”
我还包括了这些文件:
“我的插件中的所有I18N”,如该主题的各种答案所述。”
脚本运行时版本:4.X net API兼容:4.X v2 net
我想念什么?