IDataContractSurrogate not being called on Windows 2003

I've written a custom attribute that implements IDataContractSurrogate that determines the type to serialize/deserialize in place of 'legacy' types from configuration information. The code was developed on a Windows XP box and works great under every scenario I've thrown at it. Thinking I could call it a day I deployed the solution to a Windows 2003 Server box that has all of the necessary runtime redistributables and patches (but no VS 2k5) installed and ran a few test against the service. Much to my chagrin, nothing worked except those types already defined with a DataContract/Serializable attribute. I went back into the code and sprinkled it with magical pixie tracing dust...the only trace statement written was a stack trace I placed into the constructor but no others appeared. On my XP box ALL of the trace statements were hit.

So my question is: What dumba$$ thing am I overlooking here? Is there some security setting, code access attribute that I'm missing?

Help me IndigObie-Wan-Kenobi...you're my only hope...

[1045 byte] By [farproc2000] at [2008-1-8]
# 1

That is wierd, could you tell what exact exceptions you encountered in win2k3?

James.Zhang-MSFT at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...
# 2
I agree, it is very odd. Anyway, the exception is an InvalidDataContractException and it is thrown when the DataContractSerializerOperationBehavior is invoking the ApplyDispatchBehavior. The custom attribute, which also implements IOperationBehavior, never seems to have its ApplyDispatchBehavior method called (for some reason the attribute is 'lower' in the list of OperationDescription.Behaviors than the DataContractSerializerOperationBehavior on the win2k3 box than it is on the XP box...not sure if this has anything to do with the issue though) which is where the attribute attaches itself to the existing DataContractSerializerOperationBehavior.DataContractSurrogate property. It is almost as if the attribute has not had a chance to apply itself as the 'surrogate provider'.
farproc2000 at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...

Visual Studio Orcas

Site Classified