InertiaM
Well-known member
I am getting an error 'System.IO.FileNotFoundException' when running my program.  The DLL is referenced properly and is the correct version.
I assume this is because the referenced DLL is not in the same folder as the Executable. If I put the DLL into the same directory (eg the BIN directory), everything works fine.
My issue is that I reuse the DLL in many programs, so do not want copies in multiple folders. Any ideas? Can I not just have one copy and tell my EXE where to look for the DLL on the deployment PC?
	
		
			
		
		
	
				
			I assume this is because the referenced DLL is not in the same folder as the Executable. If I put the DLL into the same directory (eg the BIN directory), everything works fine.
My issue is that I reuse the DLL in many programs, so do not want copies in multiple folders. Any ideas? Can I not just have one copy and tell my EXE where to look for the DLL on the deployment PC?