Leaders quwiltw Posted September 13, 2002 Leaders Posted September 13, 2002 What string is expected in the Load method of Assembly? I've tried the namespace.projectname, projectname, projectname.namespace, it still doesn't find it. I've got the project for this assembly in the same solution that I'm trying to use it, just as a separate project. Thanks for any help. Dim assm As [Assembly] assm = System.Reflection.Assembly.Load("Plugins.SamplePlugin") Quote --tim
*Gurus* Thinker Posted September 13, 2002 *Gurus* Posted September 13, 2002 How about using the Assembly.LoadFrom and specifying the path and name of the DLL file? Quote Posting Guidelines
*Gurus* Thinker Posted September 13, 2002 *Gurus* Posted September 13, 2002 One more thing. If you are going to use the Load method, first create an AssemblyName object, and set the Name property (or FullName). Then pass that. Quote Posting Guidelines
Leaders quwiltw Posted September 13, 2002 Author Leaders Posted September 13, 2002 Thanks Thinker, I guess I got so focused on trying to make the Load method work that I didn't even investigate alternatives. I'm was just trying to get it working, now I need to go back and make sure I fully understand what it's doing and the relationship between loading an assembly and creating an instance from it, as I'm not real sure why I need to load it if I can simply create an instance straight from the assembly. Thanks again Quote --tim
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.