Jump to content

Format of the initialization string does not conform to specification starting at index 36.


Recommended Posts

I get the error stated in the title everytime I try to build my project.

The issue points at my reference to my InitConnection() method.


This is what my InitConnection() looks like.

 public static void InitConnection()
            String FilePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "SQLInfo.json");
            Connection sql = new Connection();

                Origin_Roleplay.Main.Log_Server("File found. Loading data.");
                String SQLData = File.ReadAllText(FilePath);
                sql = NAPI.Util.FromJson<Connection>(SQLData);
                String SQLConnection = $"SERVER={sql.host};UID={sql.Username};PASSWORD={sql.Password};DATABASE{sql.Database};";
                mConnection = new MySqlConnection(SQLConnection);

I got this issue after I messed with my runtime error folder.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...