R
RSS
Hi everyone,
I have an app that uses some DLL's that are shared across couple applications. There are reasons existing that prevent me from putting them in to the GAC.
Each of these app's at some point in time loads a DLL dynamically in this fashion:
System.Reflection.Assembly assembly = null;
assembly = System.Reflection.Assembly.LoadFrom(_assemblyPath);
return assembly.CreateInstance(_typeName, false, System.Reflection.BindingFlags.Default, null, args, null, null);
_assemblyPath - DB driven that has a value for path. Now, if I have a path like this "C:\Mypath\My.dll" everything works fine. If I only have "My.dll" i get an error message saying the My.dll or one of its dependencies cannot be found. The exe and My.dll reside in the same folder and by default it should load when _assemblyPath = My.dll.
Any idea why its not working.
thanks a lot in advance.
I have an app that uses some DLL's that are shared across couple applications. There are reasons existing that prevent me from putting them in to the GAC.
Each of these app's at some point in time loads a DLL dynamically in this fashion:
System.Reflection.Assembly assembly = null;
assembly = System.Reflection.Assembly.LoadFrom(_assemblyPath);
return assembly.CreateInstance(_typeName, false, System.Reflection.BindingFlags.Default, null, args, null, null);
_assemblyPath - DB driven that has a value for path. Now, if I have a path like this "C:\Mypath\My.dll" everything works fine. If I only have "My.dll" i get an error message saying the My.dll or one of its dependencies cannot be found. The exe and My.dll reside in the same folder and by default it should load when _assemblyPath = My.dll.
Any idea why its not working.
thanks a lot in advance.