System.Security.Permissions missing when invoking JsonConvert.DeserializeObject in .NET Core 2.0

前端 未结 5 1874
小鲜肉
小鲜肉 2020-12-15 08:16

I am currently looking at using .NET Core 2.0 so that I can run my app on multiple platforms.

One thing I need to do is take an incoming string and deseralise it in

5条回答
  •  星月不相逢
    2020-12-15 08:44

    For me i could not connect to mysql database and i was getting this error "Could not load file or assembly 'System.Security.Permissions, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ffffd51".

    I resolved it by using nuget package manager to install Mysql.Data and also installed System.Security.Permissions. This solved my problem.

提交回复
热议问题