One Posted May 1, 2020 Posted May 1, 2020 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now