Gets or sets the name of a remoting application.
Assembly: mscorlib (in mscorlib.dll)
At least one of the callers higher in the callstack does not have permission to configure remoting types and channels. This exception is thrown only when setting the property value.
An application name can be set only once, either through the current property or through a configuration file. If an application is running inside a hosted environment, such as Internet Information Services (IIS), this value might have already been set (usually to the virtual directory). The current property will return null if the application name has not been set.
The following code example demonstrates the use of the property to indicate the name of the remoting application. For the full example code, see examples for the RegisterWellKnownClientType and RegisterWellKnownServiceType methods.
The following code example demonstrates how to access an object remoted from a named application.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.