Jump to content

Could not load file or assembly System.Security.Permissions, Version=4.0.3.0


Recommended Posts

Posted (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 by 4do4

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...