Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

RemotingConfiguration.Configure Method

Reads the configuration file and configures the remoting infrastructure.

[Visual Basic]
Public Shared Sub Configure( _
   ByVal filename As String _
public static void Configure(
 string filename
public: static void Configure(
 String* filename
public static function Configure(
   filename : String


The name of the remoting configuration file. Can be a null reference (Nothing in Visual Basic).


Exception Type Condition
SecurityException At least one of the callers higher in the callstack does not have permission to configure Remoting types and channels.


Passing a null reference (Nothing in Visual Basic) as the filename parameter will cause default remoting initialization without requiring the existence of a configuration file.

For configuration file syntax, see Remoting Settings Schema.


[Visual Basic] 
' Configure the remoting structure.


    // Configure the remoting structure.


    // Configure the remoting structure.

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

RemotingConfiguration Class | RemotingConfiguration Members | System.Runtime.Remoting Namespace | Remoting Settings Schema

© 2015 Microsoft