4do4 Posted May 13, 2020 Posted May 13, 2020 (edited) Hello! I have next code on C#: string SqlConnection = $"SERVER={sql.Host};PASSWORD={sql.Password}; UID={sql.Username};DATABASE={sql.Database}"; conn = new MySqlConnection(SqlConnection); conn.Open(); after launching it returns an error: System.IO.FileNotFoundException: "Could not load file or assembly 'System.Security.Permissions, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. I put the necessary dll in almost all the server folders I'm panicking! .NET Core version 3.1 Already 4 hours can not solve the problem, please help Thanks you all! Edited May 13, 2020 by 4do4
AxE Posted May 13, 2020 Posted May 13, 2020 You are missing a dll or have a wrong library loaded ... try unloading re-adding needed libraries.
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