[Mono-dev] invalid ELF header

mikle mih3y at inbox.lv
Thu Aug 12 07:13:47 EDT 2010


Hello everyone. Sorry for my English, but i need your help on this one.

First if all i got this error - 
Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for VoIPPhoneCS.Phone --->
System.DllNotFoundException: VoIPPhone.dll

Actually Voipphone.dll is in the same folder,from what i am launching my
exe. But mono searched for file libVoIPPhone.dll in /usr/lib/, so i copied
my VoIPPhone.dll to /usr/lib and renamed it to libVoIPPhone.dll and now a
get this error - 

: Mono-WARNING **: DllImport unable to load library '/lib/libVoIPPhone.dll:
invalid ELF header'.
Mono-INFO: DllImport attempting to load: 'VoIPPhone.dll'.
Mono-INFO: DllImport loading location: 'libVoIPPhone.dll.so'.
Mono-INFO: DllImport error loading library: '/usr/lib/libVoIPPhone.dll.so:
invalid ELF header'.
Mono-INFO: DllImport loading library: './libVoIPPhone.dll.so'.
Mono-INFO: DllImport error loading library './libVoIPPhone.dll.so: cannot
open shared object file: No such file or directory'.
Mono-INFO: DllImport loading: 'VoIPPhone.dll'.
Mono-INFO: DllImport error loading library '/usr/lib/VoIPPhone.dll: invalid
ELF header'.
Mono-INFO: DllImport loading location: 'libVoIPPhone.so'.
Mono-INFO: DllImport error loading library: 'libVoIPPhone.so: cannot open
shared object file: No such file or directory'.
Mono-INFO: DllImport loading library: './libVoIPPhone.so'.
Mono-INFO: DllImport error loading library './libVoIPPhone.so: cannot open
shared object file: No such file or directory'.


Hope to get some help. THX!
-- 
View this message in context: http://mono.1490590.n4.nabble.com/invalid-ELF-header-tp2322558p2322558.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list