Ok, some of you might now this but this one is just for the record:

 // Do this if you"re assembly
// is located in your private bin path
// and you wish to get your type dynamically
string asmName "PrivateAssembly";
string 
typeName "PrivateAssembly.MyType";

object 
obj Activator.CreateInstance(asmName, typeName).Unwrap();
 
// Do this if your assembly is in your
// private bin path or in the GAC and
// you wish to get your type dynamically.
string name "GlobalAssembly";
string 
typeName "GlobalAssembly.GlobalType";

System.Reflection.AssemblyName asmName = new System.Reflection.AssemblyName(name);
System.Reflection.Assembly asm System.Reflection.Assembly.Load(asmName);
object 
obj asm.CreateInstance(typeName);

 

This code makes all the difference when loading assemblies dynamically.