L
Luis F. Rodas
Hi all,
I am using Assembly.LoadFrom( ) to load an assembly:
Assembly as =
Assembly.LoadFrom("C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll");
I noted 'CodeBase' and 'Location' properties from 'as' variable display the
GAC path, that is, the assembly was loaded from GAC and not from path
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\". Questions:
1) Why ?
2) I need load some assemblies (they are installed on GAC too) from original
path (e.g. C:\Program Files\MyProgram\MyControls\MyAssembly.dll) and not
from GAC. Any way ?
Best Regards,
Luis F.
(Indusoft Team)
I am using Assembly.LoadFrom( ) to load an assembly:
Assembly as =
Assembly.LoadFrom("C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll");
I noted 'CodeBase' and 'Location' properties from 'as' variable display the
GAC path, that is, the assembly was loaded from GAC and not from path
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\". Questions:
1) Why ?
2) I need load some assemblies (they are installed on GAC too) from original
path (e.g. C:\Program Files\MyProgram\MyControls\MyAssembly.dll) and not
from GAC. Any way ?
Best Regards,
Luis F.
(Indusoft Team)