> > Take a look at the SurrogateSelector property on the > BinaryFormatter, it allows you to set the Selector used > during the serialization phase... >
But to do this, you need to have a reference to the formatter that's going to be used. When you're just doing object persistence, this is easy - since you're the one that creates the formatter. But in a remoting scenario, you don't normally have access to the formatter - the formatter is constructed indirectly by the formatter provider (which acts as a factory) when the message sink chain is being constructed. So you need to substitute your own formatter provider so that your code is called on to setup & return the formatter (configured however you want it). -Mike DevelopMentor http://staff.develop.com/woodring
