Skip Navigation LinksHome > Blog > 2008 > January > 02

January 02, 2008

How To: Load Assemblies in an Application Domain

Creating a new application domain and launching an assembly within that domain is as simple as creating an instance of the System.AppDomain class with a friendly name, and then calling the ExecuteAssembly method, as the following code demonstrates:' VBDim d As AppDomain = AppDomain.CreateDomain("NewDomain")d.ExecuteAssembly("Assembly.exe")Excerpt from MSDN: There are several ways