I need to deserialize a bunch of XML files in a .NET 4.0 project that's just been upgraded from .NET 2.0. Because the Serialization functions have changed, deserialization now fails because a bunch of properties in a third party object library my classes are inheriting from are not marked with [XmlIgnore].
Question: Can I call the Deserialize() function from the 2.0 version of System.Xml.dll from a .NET 4.0 project using reflection?
I've tried:
Assembly.Load("System.Xml, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089");
but this failed with FileNotFoundException (it DOES search the GAC, right?)