由于安全限制,无法访问该类型. [英] Because of security restrictions, the type cannot be accessed."

查看:69
本文介绍了由于安全限制,无法访问该类型.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C#服务上调用方法(通过.net远程连接)时,出现以下错误.

由于安全限制,无法访问该类型."

此错误的根源是什么?我该如何解决?

我正在使用.net 2.0

I''m getting the following error when calling a method on a C# service (connected through .net remoting).

"Because of security restrictions, the type cannot be accessed."

What is the source of this error? How can I fix it?

i am using .net 2.0

推荐答案

检查TypeFilterLevel.听起来好像设置为低",这意味着反序列化仅支持基本的远程处理功能.请参见此处 [
Check the TypeFilterLevel. It sounds like it''s set to Low, which means that deserialization supports basic remoting functionality only. See here[^] for more details.


这篇关于由于安全限制,无法访问该类型.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆