我正在使用Dapper,.NET Core 2和MySql.Data在Linux上創建一個小的REST API。不幸的是,我不斷收到我的連接上的這個錯誤:.NET Core 2與MySql.Data導致權限錯誤
Exception has occurred: CLR/System.IO.FileNotFoundException
An exception of type 'System.IO.FileNotFoundException' occurred in MySql.Data.dll but was not handled in user code: 'Could not load file or assembly 'System.Security.Permissions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.'
at MySql.Data.MySqlClient.MySqlConnection.AssertPermissions()
at MySql.Data.MySqlClient.MySqlConnection.Open()
at Dapper.SqlMapper.<QueryImpl>d__124`1.MoveNext()
有沒有人有任何想法是怎麼回事?