[Mono-list] System.DllNotFoundException, but dll is there.

Chris Howie cdhowie at gmail.com
Tue Oct 20 23:14:55 EDT 2009

On Tue, Oct 20, 2009 at 8:23 PM, Robert Jordan <robertj at gmx.net> wrote:
> Lecio wrote:
>> Oh my.. !!!!!!!!!!
>> I had that log after executed, how can I fix that dlls missing ?
> No dll is actually missing.

Incorrect, see below.

>> Ps.: Arquivo ou diretório não encontrado = File or folder not found
>> [ ]'s
>> Mono-INFO: DllImport loading library: './libUFScanner.so'.
>> Mono-INFO: DllImport error loading library './libUFScanner.so: undefined
>> symbol: usb_bulk_read'.
> The library libUFScanner.so was loaded but it was not able
> to resolve its import 'usb_bulk_read'. It seems that
> your system is lacking "libusb".
> This is not related to Mono anymore.

Actually, it looks like the poster is trying to P/Invoke a Windows DLL
on a Linux box.  This is not possible.

Lecio, you need to compile your UFScanner.dll for Linux systems.  If
you cannot then your program will not run on Linux, for the same
reason you can't copy an unmanaged .exe file to a Linux system and run

You *might* be able to get it working by running a Windows version of
Mono under Wine.  I've heard widely varying stories on this setup and
some people can get it to work while others cannot.

Chris Howie

More information about the Mono-list mailing list