Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by KelviQ · Mar 26, 2019 at 12:16 PM · il2cppexceptionmysql

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 :0 at MySql.Data.MySqlClient.MySqlConfiguration..cctor () [0x00000] in :0 at MySql.Data.MySqlClient.Replication.ReplicationManager..cctor () [0x00000] in :0 at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000] in :0 at Server.Start () [0x00000] in :0 Rethrow as TypeInitializationException: The type initializer for 'MySql.Data.MySqlClient.MySqlConfiguration' threw an exception. at MySql.Data.MySqlClient.Replication.ReplicationManager..cctor () [0x00000] in :0 at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000] in :0 at Server.Start () [0x00000] in :0 Rethrow as TypeInitializationException: The type initializer for 'MySql.Data.MySqlClient.Replication.ReplicationManager' threw an exception. at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000] in :0 at Server.Start () [0x00000] in :0

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

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jamesmac64 · Mar 20, 2020 at 04:04 PM 0
Share

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 $$anonymous$$ySql.Data.$$anonymous$$ySqlClient.$$anonymous$$ySqlConfiguration..cctor () [0x00000] in :0 Rethrow as TypeInitializationException: The type initializer for '$$anonymous$$ySql.Data.$$anonymous$$ySqlClient.$$anonymous$$ySqlConfiguration' threw an exception. at $$anonymous$$ySql.Data.$$anonymous$$ySqlClient.Replication.Replication$$anonymous$$anager..cctor () [0x0001e] in :0 Rethrow as TypeInitializationException: The type initializer for '$$anonymous$$ySql.Data.$$anonymous$$ySqlClient.Replication.Replication$$anonymous$$anager' threw an exception. at $$anonymous$$ySql.Data.$$anonymous$$ySqlClient.$$anonymous$$ySqlConnection.Open () [0x0016f] in :0 at SqlWrapper.OpenConnection () [0x000e3] in :0 at SqlWrapper.ServerRoomDataExists (System.String localName, System.String infoName, System.String setName) [0x0000d] in :0 at SceneLoadFunctions.b__41_0 () [0x00033] in :0 at Host$$anonymous$$enuScreen.OnRender () [0x006af] in :0 at $$anonymous$$enuScreen.ProcessRender () [0x00012] in :0 at SceneLoadFunctions.OnGUI () [0x00088] in :0

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by JoshPeterson · Mar 26, 2019 at 06:37 PM

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

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image askaleetw · Aug 28, 2019 at 12:22 PM 0
Share

Hi @JoshPeterson, why Configuration$$anonymous$$anager class is not supported with IL2CPP?

avatar image JoshPeterson askaleetw · Aug 28, 2019 at 12:24 PM 0
Share

The Configuration$$anonymous$$anager class pulls in a bunch of managed code. So this is really a trade-off between code size and functionality. We decided that the increased code size was not worth the functionality provided.

avatar image askaleetw JoshPeterson · Aug 28, 2019 at 02:22 PM 0
Share

Is there any official document talked about what classes are not supported by IL2CPP? I have tried to google it, but only found information here.

Show more comments
avatar image
0

Answer by dhitz666 · May 17, 2020 at 01:56 PM

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

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image UDN_92631451-08ac-4214-a1b8-6f2fbdffb6d2 · Aug 31, 2020 at 10:39 PM 0
Share

Have you found a solution to the problem?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

172 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Buliding Android Game | Exception - il2cpp.exe did not run properly 0 Answers

build with IL2CPP error unity 4.6.9 while making iOS build 1 Answer

Windows Standalone and MySQL: NotSupportedException 0 Answers

Could not load file or assembly 'Facebook.Unity.Gameroom' Exception occurs on IL2CPP build. 1 Answer

method body replaced by unityLinker.exe with a notsupportedexception 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges