Remoting Cross AppDomains
This sample shows how to use .NET Framework remoting to communicate between AppDomains. Additionally, this sample shows how to achieve AppDomain isolation for loading of assemblies to maintain security boundaries for untrusted assemblies.
To build the sample using the command prompt
Open a command prompt and, depending on your choice of programming language, navigate to the appropriate language specific subdirectory.
Type msbuild.exe RemotingCrossAppDomain.sln at the command line.
To build the sample using Visual Studio
Open Windows Explorer and, depending on your choice of programming language, navigate to the appropriate language specific subdirectory.
Double-click the icon for RemotingCrossAppDomain.sln to open the file in Visual Studio.
On the Build menu, click Build Solution.
The application will be built in the default \bin or \bin\Debug directory.
To run the sample
Navigate to the directory containing the new executable, using the command prompt or Windows Explorer.
Type Application.exe at the command line, or double-click the icon for Application.exe to launch it from Windows Explorer.