Share via


<service> Element

Contains objects the application exposes to other application domains or contexts.

<configuration>
   <system.runtime.remoting>
      <application>
**         <service>**

<service>
   <wellknown/>
   <activated/>
</service>

Child Elements

Element Description
<wellknown> Contains information about server-activated (well-known) objects the application exposes. Can occur one or more times in the <service> element.
<activated> Contains information about client-activated objects the application exposes. Can occur one or more times in the <service> element.

Example

The following configuration file declares a server-activated (well-known) type, the object URI at which it is to be found, and the WellKnownObjectMode that controls activation of instances.

<configuration>
   <system.runtime.remoting>
      <application>
         <service>
            <wellknown 
               type="ServerActivatedType, RemoteAssembly" 
               objectUri="ServerType.rem" 
               mode="Singleton" 
            />
         </service>
      </application>
   </system.runtime.remoting>
</configuration>

Requirements

Configuration Files: Application configuration file, machine configuration file (Machine.config)

See Also

Remoting Settings Schema | Activation | Server Activation | Client Activation