I have a 64-bit dll (Imageloc.dll) generated using opencv 2.4 in VS2010. It works fine when it's called on Windows 7. However, when I run it on windows 2000 server, it gives me
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Imageloc.dll' or one of its dependencies. The specified module could not be found. at Test.Program.Main(String[] args)
I have the environment path values set as follows on Windows 2000 just like Windows 7
C:\Applications\opencv\build\x64\vc10\bin; C:\Applications\opencv\build\common\tbb\intel64\vc10;
openCv 2.4 product installed in c:\Applications\opencv
Visual Studio is installed on Windows 7 but not on Windows 2000.
Any help is appreciated.
Update: I ran it on another computer that has Windows 7 but doesn't have Visual Studio and it gave me the same error. I ran it on Windows 2000 with Visual Studio and it worked. How does Visual Studio make it work?
The program of the dll is written in c++-cli and is compiled in /MD . Could it be related to some dlls of C runtime library or CLR dlls?