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

推荐订阅源

美团技术团队
T
The Blog of Author Tim Ferriss
C
Check Point Blog
博客园_首页
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
L
LangChain Blog
小众软件
小众软件
Stack Overflow Blog
Stack Overflow Blog
爱范儿
爱范儿
Vercel News
Vercel News
博客园 - Franky
V
V2EX
IT之家
IT之家
U
Unit 42
N
Netflix TechBlog - Medium
腾讯CDC
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
博客园 - 叶小钗
H
Help Net Security
V
Visual Studio Blog
GbyAI
GbyAI

博客园 - 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.. :(