Thanks to visit codestin.com
Credit goes to github.com

Skip to content

System.TypeLoadException: Could not find method due to a type load error #18650

@ArseeniK

Description

@ArseeniK

Steps to Reproduce

  1. Use a C# plugin with MySQLConnector (v0.61.0)
  2. Attemtp to open a connection to SQL server

Current Behavior

An error show up and connection fail

Expected Behavior

Open a connection successfully

On which platforms did you notice this

[ ] macOS
[ x ] Linux
[ ] Windows

Version Used:
Mono JIT compiler version 6.8.0.96 (tarball Wed Jan 15 10:18:35 UTC 2020)
MySQLConnector v0.61.0
Linux vps554313 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux

Stacktrace

System.TypeLoadException: Could not find method due to a type load error
  at MySql.Data.MySqlClient.MySqlConnection+<OpenAsync>d__27.MoveNext () [0x000f0] in <01c01c10eebd45d983ea263ab37efd61>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <437ba245d8404784b9fbab9b439ac908>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <437ba245d8404784b9fbab9b439ac908>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <437ba245d8404784b9fbab9b439ac908>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <437ba245d8404784b9fbab9b439ac908>:0
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0
  at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00017] in <01c01c10eebd45d983ea263ab37efd61>:0
  at PlayerXP.EventHandlers.OnPlayerJoin (EXILED.PlayerJoinEvent ev) [0x00113] in <ccc06c91d1fe4cb1b8c45f2ee07e506f>:0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions