标题: [教学]That assembly does not allow partially trusted callers [打印本页] 作者: 资讯王 时间: 2010-4-9 11:28 标题: [教学]That assembly does not allow partially trusted callers For Web Service Solution / Web Service的问题
System.Security.SecurityException: That assembly does not allow partially trusted callers.,
复制代码
How solve it? / 如何解决呢?
1. Go AssemblyInfo.cs Add the Content Below / AssemblyInfo.cs文件中加如下内容
C#
using System.Security;
[assembly: AllowPartiallyTrustedCallers()]