Search the Community
Showing results for tags 'mysql error'.
Found 2 results
-
Hello, can you help me solve a C# MySQL connection problem? The error is as follows: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type 'System.Security.PermissionSet' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral , PublicKeyToken=b77a5c561934e089'. At MySql.Data.MySqlClient.MySqlConnection.AssertPermissions() At MySql.Data.MySqlClient.MySqlConnection.Open() At GameMode.ResourceStart() --- End of inner exception stack trace --- At System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) At System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) At GTANetworkInternals.ScriptingEngine.InvokeVoidMethod(String method, Object[] args) At System.Collections.Generic.List`1.ForEach(Action`1 action) At GTANetworkInternals.EventHandler.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments) At System.Collections.Generic.List`1.ForEach(Action`1 action) At GTANetworkInternals.GameServer.StartResource(String resourceName, String parent) I used nuget's mysql data and also referenced bootstrapper but it always gives an error. Thank you!
-
Question #1 (FIXED just compiled resource) Code: https://pastebin.com/dkqQkrA2 Question #2 (FIXED) Code: https://pastebin.com/bwkspwen Fix: Use it: https://msdn.microsoft.com/ru-ru/library/system.threading.timer(v=vs.110).aspx Question #3 (FIXED just compiled resource) Code: https://pastebin.com/LC2LNkf2 Reference
