Jump to content
RAGE Multiplayer Community

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.

Database.Connection.InitConnection();

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();

            if(File.Exists(FilePath))
            {
                Origin_Roleplay.Main.Log_Server("File found. Loading data.");
                String SQLData = File.ReadAllText(FilePath);
                sql = NAPI.Util.FromJson<Connection>(SQLData);
                Main.Log_Server(sql.ToString());
                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 post
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...