I've got some code
var type = Type.GetType("namespace, assembly");
return Activator.CreateInstance(type);
thats works fine in most situations, however when this code is referenced in the Global.asax of a website that is debugged using Cassini/Visual Studio Development Server the type cannot be found.
The type is in an assembly that is not referenced but is normally in the same output directory as the executing assembly. However upon closer inspection it appears that during debugging Cassini put the executing assembly and each referenced assembly into its own directory in the following location C:\users...\AppData\Local\Temp\Temporary ASP.NET Files\root..... however obviously the 'unreferenced' assembly is not there.
Is there a way to have VS copy extra resources into the temp directory or alternatively to run from a specified directory? Is using IIS the only solution?
Thanks in advance.