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

 找回密码
 注册
搜索
打印 上一主题 下一主题

[教学]That assembly does not allow partially trusted callers

[复制链接]
跳转到指定楼层
1#
发表于 2010-4-9 11:28:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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()>

手机版|大马资讯论坛  

GMT+8, 2024-12-5 11:52 , Processed in 0.178805 second(s), 14 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表