我的demo中使用了.NET Remoting。
目前使用远程事件订阅和远程的异步事件回调两种方法,我使用http://www.genuinechannels.com/网站上的第三方自定义信道则可以很完美的通过,而使用Remoting中的http、tcp则在运行时远程对象上提示为“System.Runtime.Remoting.ObjRe在此安全级别上不可被访问”。
有谁有这方面的经验,谢谢?
我的demo下载地址: http://www.cfpland.com/remoting_db2.zip
MSN:crob1980@hotmail.com
就是现在Remoting用的挺广泛的,为什么不开个remoting专版呢。
这是升级到1.1的FAQ了。:)
http://www.ingorammer.com/RemotingFAQ/Changes2003.html
注册通道的时候加上provider的过滤级别看看。
BinaryServerFormatterSinkProvider provider = new BinaryServerFormatterSinkProvider();
provider.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
// creating the IDictionary to set the port on the channel instance.
IDictionary props = new Hashtable();
// Create a channel at port number
props["port"] = 0;
// pass the props for the port setting and the server provider in the
// server chain argument. (Client remains null here.)
this._channel = new TcpChannel(props, null, provider);