I need to create a custom application domain to work around a bug in the .NET runtime\'s default behavior. None of the sample code I\'ve seen online is helpful since I don\'
You need to:
1) Create an instance of AppDomainSetup object and populate it with the setup information you want for your domain
2) Create your new domain by using AppDomain.CreateDoman method. The AppDomainSetup instance with configuration parameters is passed to the CreateDomain method.
3) Create an instance of your object in the new domain by using the CreateInstanceAndUnwrap method on the domain object. This method takes typename of the object you want to create and returns a remoting proxy you can use in yuor main domain to communicate with the object created in the new one
Once you are through with these 3 steps you can call methods in the other domain through the proxy. You can also unload the domain after you are done and reload it again.
This topic in MSDN help has pretty detailed example of what you need