.net - FileNotFoundException trying to load a DLL from managed code -


To stop, I would say I'm unfamiliar with Windows Linking System. (Most of my programming experience on Mac OS was acquired, on which there was considerable variation in connecting libraries and frameworks. I do not have too many Windows users.)

This is my setup: I got it Two projects in the same solution are the first one C ++ / CLI project that we will call on Foo > Library is a library project on the external library (Java Runtime Environment) Fearless , And thus there is a proper reference for proper (since I believe it has been compiled since) .lib file (I could not change any other project setting related to loading that library.) My second project, bar is a C # console executable project whose reference is Foo .

Both the collections are just fine.

However, when I execute my Bar.exe C # program, it first dies before the creation of the object, from which type Foo . The exception is a FileNotFoundException which can be found in the Foo.dll assembly or its dependency.

So I used to see what was wrong, but I really can not understand how it works, and the document I got on it Is unbearable. I think that I understand that both foo and bar failed to load as the original images, but the correct IL was found and loaded properly in that manner was done. There is no other relevant mention of failure, however, obviously it does fail at some point I post a log, but they are in French and I think it would be very useless.

Any thoughts?

Are all executable and DLL dependencies in the output directory? First check the original dependencies.


Comments