I am preloading an assembly in the Application_Start() using Assembly.LoadFrom("pathtomyassembly").
Why am I not able to get my assembly using Assembly.Load("MyAssemblyName") just like I can with any other assembly loaded automatically from the bin directory.
Is there a way to do this without calling LoadFrom() with the assembly path every time?
UPDATE:
The weird thing is, when I use
AppDomain.CurrentDomain.GetAssemblies()
I can see that my assembly is loaded in the AppDomain.
Is there a way to get it without looping through the assemblies?