Assembly Path
-
Lets supose that I have 2 applications, one at C:\app1 and another at C:\app2. At application 2 I have 2 assemblies, app2-1.dll and app2-2.dll. App2-1.dll have a reference to app2-2.dll, so app2-1.dll needs app2-2.dll to work correctly. Ok, at my app1 I use the following code: System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(@"C:\app2\app2-1.dll"); Type classType = assembly.GetType("app2-1.MyClass",true); At this time I've an error. When my assembly app2-1 tries to call some method from my app2-2 that is referenced it doesn't find my app2-2.dll. How to change my default assembly path when load it? something like this... System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(@"C:\app2\app2-1.dll"); assembly.DefaultPath = @"C:\app2\"; Some Idea? Tkx PS: This property DefaultPath doesn't exist... Wender Oliveira .NET Programmer