



















Currently, we are converting our application to .net 2.0. Then I am getting an error with remoting... simply because Soap Serializer does not support serializing Generic Types...
and here is ms answer: " That is correct. We have decided not to invest in any significant new feature work for the SoapFormatter in Whidbey."
So what I have to do is changing our soap serializer formatter to binary serializer formatter using a config like this,
BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider();serverProv.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
IDictionary props = new Hashtable();
props["port"] = 0;
props["TypeFilterLevel"] = "Full";
HttpChannel chan = new HttpChannel(props, clientProv, serverProv);
ChannelServices.RegisterChannel( chan );
The original post in msdn forum with more codes are here
It seems no answer yet.. :(
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。