DypeSperodo
New Member
The following is my directory structuree:\test\probing The directory probing containts an executable [Probing.exe] which loads the dll file ( Probe.dll).The code is :\[code\]namespace Probing { class Program { static void Main(string[] args) { Assembly asm = Assembly.Load("Probe.dll"); if (asm != null) { Console.WriteLine("Assembly Probe is loaded"); } else { Console.WriteLine("Assembly Probe is not loaded"); } } }}\[/code\]The dll file is (Probe.dl) residing in the sub directory ( e:\test\probing\CustomLibraries\Probe.dll ).I supplied Probing.exe.config file,even App.config to locate the assembly.The configuration file contains the following code :\[code\]<configuration><runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><probing privatePath="CustomLibraries"/></assemblyBinding></runtime></configuration>\[/code\]I am receiving FileNotFound Exception untill i keep the dll inside the Bin dir.I need your help.( I am using Visual studio 2008 )