I posted a similar question a while ago. I need to load the assembly at runtime.
This is easy if I know the absolute path of the DLL at runtime.
But I do not want :( Assembly assembly failed .Load () or LoadFromFile () if the file is not in the root of the application.
The only thing I have is the name dll. DLL can be located in the root, system32 or even in the GAC.
Is it possible .net to automatically determine where the dll is located, for example, for example: it must first look at the root. If not, go to system folders, try the GAC.
EDITED
I am using pluggable architecture. I do not need to register dll. I have a multi-user application. I have an application table containing information about applications. Each application has a dll path associated with it, containing certain algorithms associated with this application. Hope this helps.
source share