(e-mail address removed) ("Peter Huang") wrote in
Can you build a simple reproduce sample together with the detailed
steps and send to me, I will do further troubleshooting of the
problem.
Problem: An apparently undocumented change was made in Framework 1.0
SP3 which implements a "typeFilterLevel" property in the
BinaryServerFormatterSinkProvider object with a default value of
"low". This change causes our existing application to break.
Sample program:
using System;
using System.Runtime.Remoting.Channels;
using System.Collections;
namespace Formatter
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
IDictionary props = new Hashtable();
props["typeFilterLevel"] = "Full";
BinaryServerFormatterSinkProvider BSFP =
new BinaryServerFormatterSinkProvider(props, null);
}
}
}
When run under the base Framework 1.0 or Framework 1.0 SP1, the
following error is generated:
------------------------------------------------------------------ An
unhandled exception of type 'System.TypeLoadException' occurred in
Unknown Module.
Additional information: Could not load type
System.Runtime.Serialization.Formatters.TypeFilterLevel
from assembly mscorlib, Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089.
-------------------------------------------------------------------
When run under Framework 1.0 SP2, the following error is generated:
An unhandled exception of type
'System.Runtime.Remoting.RemotingException'
occurred in system.runtime.remoting.dll
Additional information: BinaryServerFormatterSinkProvider
does not recognize 'typeFilterLevel' configuration property.
--------------------------------------------------------------------
When run under Framework 1.0 SP3, no error is generated because the
object now has an undocumented property "typeFilterLevel".
If the code to set this property to "high" is not added, our
application breaks because the default value of "low" is not correct
for our situation.
This change in SP3 is apparently undocumented.
We are concerned that there are other changes in SP3 that we'll also
discover the hard way.