Exception: That assembly does not allow partially trusted callers.时间:2021-12-01 13:38:48发生此异常,需要给程序集的Assembly.cs中加上一个属性: [assembly:AllowPartiallyTrustedCallers] 这样,可解决这个异常问题!