TrevorRage Posted August 29, 2020 Share Posted August 29, 2020 Hi everyone! Trying to connect Database MySQL, an error occurs. An error occurs while opening the database (coon.open). Help me figure it out) P.S: Use GTANetworkAPI 1.1.0, MySql.Data 8.0.21, NetCore 3.1 and XAMPP 3.2.4 Link to comment Share on other sites More sharing options...
Xabi Posted August 30, 2020 Share Posted August 30, 2020 As the message says, it can't find that .dll, make sure you have them in your server-files/dotnet/runtime folder. Link to comment Share on other sites More sharing options...
TrevorRage Posted August 30, 2020 Author Share Posted August 30, 2020 7 часов назад, Xabi сказал: As the message says, it can't find that .dll, make sure you have them in your server-files/dotnet/runtime folder. Which file? I didn't understand what dll I needed. P.S: I have the file "Renci.SshNet.dll" and "MySql.Data.dll" in the "server-files\dotnet\resources\* Name *\bin\Debug\netcoreapp3.1" folder. Link to comment Share on other sites More sharing options...
Xabi Posted August 30, 2020 Share Posted August 30, 2020 System.Security.Permissions.dl and System.Drawing.Common.dll 1 Link to comment Share on other sites More sharing options...
TrevorRage Posted August 31, 2020 Author Share Posted August 31, 2020 23 часа назад, Xabi сказал: System.Security.Permissions.dl and System.Drawing.Common.dll I can't figure out how to download. Could not find a pure dll, tried to install, through the console NugetPackage, still the error did not go missing. Link to comment Share on other sites More sharing options...
Xabi Posted August 31, 2020 Share Posted August 31, 2020 2 hours ago, TrevorRage said: I can't figure out how to download. Could not find a pure dll, tried to install, through the console NugetPackage, still the error did not go missing. You can just add <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> to your .csproj so it copies the required .dll libraries when you compile the solution. 1 1 Link to comment Share on other sites More sharing options...
TrevorRage Posted August 31, 2020 Author Share Posted August 31, 2020 18 минут назад, Xabi сказал: You can just add <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> to your .csproj so it copies the required .dll libraries when you compile the solution. Hurrah!!! It really worked. The solution was so simple! Thank you so much) 1 Link to comment Share on other sites More sharing options...
EvaCrystal Posted September 23, 2020 Share Posted September 23, 2020 (edited) Скрытый текст Could not load file or assembly 'System.Security.Permissions, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Не удается найти указанный файл. [Exception] RegisterAccount: Could not load file or assembly 'System.Security.Permissions, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Не удается найти указанный файл. [Exception] RegisterAccount: at MySql.Data.MySqlClient.MySqlConnection.AssertPermissions() at MySql.Data.MySqlClient.MySqlConnection.Open() at gtarpmodes.ServerEvents.OnResourceStart() in D:\RAGEMP\server-files\dotnet\resources\gtarpmodes\ServerEvents.cs:line 20 Hello, please tell me. How do I fix this message in my project? I am also sending the code, please tell me what are the problems? I have not been able to solve it for a week. Скрытый текст Edited September 23, 2020 by EvaCrystal Link to comment Share on other sites More sharing options...
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