DLL dont work in release version dll not found exception (but it is there!)

Im using VS 2005
CUDA 2.3

.exe in C#

When I compile my dll in release version, my software dont find it. The DLL is there, on the right folder. If I copy the debug DLL (from debug folder) and paste over the release DLL (release folder), them the software works fine. But the dll is not optimized, because it is a debug version…

release DLL is 50 kB, debugs is 100 kB

Any idea why this is happening? :sweat:


It is working now, but I dont know why… :sick: