System.TypeLoadException: Could not load type 'CooperK2.ApplicationUserOverrideWebService.User' from assembly 'CooperK2, Version=2.0.3589.15871, Culture=neutral, PublicKeyToken=null'.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterApplicationUserOverride.Write5_GetOverrides(Object[] p)
at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer.Serialize(Object objectToSerialize, XmlSerializationWriter writer)
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
The above exception is thrown when I call code in an assembly via reflection. The exception is not raised when reflection is not used. Bellow are some additional notes. Please help.
- CooperK2.ApplicationUserOverrideWebService is the namespace that contains the user class.
- CooperK2.ApplicationUserOverrideWebService represents a web reference called inside of the assembly that is being called via reflection.
- The namespace of the assembly containing the web reference is CooperK2.