I understand what you are saying. I am just a bit confused. I have used the same code for over two years now and haven't once gotten an error. In fact, I am able to load two assemblies from the same directory (Editors) prior to the assembly that causes the exception.
After some fiddling, I was able to load it using the same process, Reflection.Assembly.Load(IO.Path.GetFileNameWithoutExtension(file)), but I changed the directory from 'Application.StartupPath & "\Editors"' to just 'Application.StartupPath'. This made it work, but I am still wondering why it would load two other assemblies from the 'Editors' directory, but not 'testModule'.




Reply With Quote