大马资讯论坛 - 马来西亚中文资讯平台

标题: [教学]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的问题
  1. 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()]

Vb.net
Imports System.Security
<Assembly: AllowPartiallyTrustedCallers()>




欢迎光临 大马资讯论坛 - 马来西亚中文资讯平台 (http://freeinfo.com.my/) Powered by Discuz! X3.3