<activated> Element (Client Instance)
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).
Contains client-activated objects that a client application consumes. The <client> element must have a url attribute specified if there is an <activated> element specified, or an exception will be thrown. This element may occur in an application configuration file, machine configuration file.
Schema Hierarchy
<configuration>
<system.runtime.remoting> Element
<application> Element
<client> Element
<activated> Element (Client Instance)
Syntax
<activated
type="type,assembly"
/>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
type |
Required attribute. Specifies the full type name of the object and the name of the assembly that contains the type implementation. This includes version, culture, and public key information if the containing assembly is in the global assembly cache. |
Child Elements
None.
Parent Elements
Element | Description |
---|---|
configuration |
The root element in every configuration file used by the common language runtime and .NET Framework applications. |
system.web |
Specifies the root element for the ASP.NET configuration section. |
Example
The following configuration file declares a client-activated remote type for consumption and specifies that the client application should use the HttpChannel but allow the .NET Framework remoting system to find an appropriate port on the client's behalf.
<configuration>
<system.runtime.remoting>
<application>
<client
url="http://computername:8080"
/>
<activated
type="RemoteType, RemoteAssembly"
/>
</client>
<channels>
<channel
ref="http"
port="0"/>
</channels>
</application>
</system.runtime.remoting>
</configuration>