I am getting the following runtime error:
Types ‘PaymentPortal.Payments.DataObjects.Address’ and ‘OurWebApp.eProc.DataFormat.Entities.Address’ both use the XML type name, ‘Address’, from namespace ”. Use XML attributes to specify a unique XML name and/or namespace for the type
Both classes have the same name. I need to deserialize a request containing an OurWebApp.eProc.DataFormat.Entities.Address entry.
I cannot change the name of the classes I need deserialized and the original class is from an assembly that is third-party provided.
Is there any way I can tell the (de)serializer to interpret the incoming ‘Address’ as a type of OurWebApp.eProc.DataFormat.Entities.Address?
Can you specify a namespace on your Address class?
That should prevent any collisions in the serialization.