惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
量子位
有赞技术团队
有赞技术团队
博客园 - 叶小钗
博客园 - 聂微东
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
小众软件
小众软件
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
人人都是产品经理
人人都是产品经理

博客园 - Gordon Golden Shining

who am I inside of me STGenerator Released ObjectDataSource的Add-In Asp.net page lifecycle explain in msdn 我做的代码生成的工具的思路 (支持.NET2.0) Programming Haskell in Visual Studio.net 2003 C#/VB.Net converter A good book to read A possible way for testing threading/server application WinXP sp2 and win 2003 does break com+/System.Transaction 2.0 You have to read this All about codes generation New tools box for year 2005 Recommend: IOC container must read article dynamic proxy how to How to implement AOP in .net My Wishlist for .net development some common used tips in web development No refresh dropdownlist using xmlhttp callback
a break in .net 2.0 remoting
Gordon Golden Shining · 2006-02-23 · via 博客园 - Gordon Golden Shining

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();
                BinaryClientFormatterSinkProvider clientProv = new BinaryClientFormatterSinkProvider();

                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 );

But it is only part of the solution.. Unfortunately, I am using event call back, so it is working for client to submit the generic list data to serve. And when the server try to publish the data change to other subscribed event. "I am still getting a soapformatter not support error"

The original post in msdn forum with more codes are here

It seems no answer yet.. :(