Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

MySql Connector issue in Standalone-player

Discussion in 'Editor & General Support' started by dreadsfun, Jul 10, 2014.

  1. dreadsfun

    dreadsfun

    Joined:
    Jul 10, 2014
    Posts:
    2
    I'm using MySql Connector / .NET to implement a login/register system. It's working fantastic in Unity editor, but when I build the player, and try to connect to DB, it throws an exception:



    The exception is thrown within the MysqlConnection.Open() method.

    All the needed dlls are imported.
    Mysql Connector / .NET v.6.8.3 - also tried with older versions. using Win7, Unity 4.5.0
    Tried to modify connection string, as a lot of people suggested.
    Tried different build options, ie development build, x86_64 etc.

    I really don't know, what else I can try, once again, it is working perfectly, without even one warning inside Unity.
    I'd really appreciate any kind of idea, solution. Thanks a lot.
     

    Attached Files:

  2. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    Hmm... that error is generally caused I believe by applications looking for app.config files. After you build your standalone, what happens if you create an empty app.config file in the base directory of your .exe before you try to run it?
     
  3. dreadsfun

    dreadsfun

    Joined:
    Jul 10, 2014
    Posts:
    2

    Same error message.