“该程序集不支持部分受信任的调用方”的解决方法

问题如题

解决方法:在类库的AssemblyInfo.cs文件中加入:

[assembly: AllowPartiallyTrustedCallers]


原文地址:https://www.cnblogs.com/zhangronghua/p/1347263.html