<preLoad> Element
This topic is specific to a legacy technology that is retained for backward compatibility with existing applications and is not recommended for new development. Distributed applications should now be developed using the Windows Communication Foundation (WCF).
Specifies the type to load the mappings from the classes that extend SoapAttribute. Although these types will be picked up automatically for serialization, the .NET Framework remoting system requires these configuration elements (or calling the programmatic equivalent) to deserialize properly.
<configuration>
<system.runtime.remoting>
<application>
<soapInterop>
<preLoad>
<preLoad type="FullTypeName" /> <preLoad assembly="AssemblyName" />
The following example associates the element ElementName and the XML namespace Example:mynamespace with the .NET type TypeName implemented by the AssemblyName assembly. The same is true of the XML type and namespace.
<configuration>
<system.runtime.remoting>
<application name="soapInterop">
<soapInterop>
<interopXmlElement
xml="ElementName,Example:mynamespace"
clr="TypeName,AssemblyName"
/>
<interopXmlType
xml="XmlTypeName,Example:TypeNamespace"
clr="TypeName,AssemblyName"
/>
<preLoad
type="TypeName"
assembly="AssemblyName"
</soapInterop>
</application>
</system.runtime.remoting>
</configuration>