[Mono-list] Web Services and native shared objects: System.DllNotFoundException

Paolo Molaro lupus@ximian.com
Mon, 24 Jan 2005 19:11:34 +0100


On 01/24/05 Miquel Ramírez wrote:
> However, this does not work: a System.DllNotFoundException is raised
> as soon as the C# code invokes the constructor. It seems to methat the
> native code shared objects must be placed somewhere 'special' - if I
> am not misunderstanding the exception meaning, the run-time symbol
> dependencies are not being resolved. Where should I place the native
> code shared objects? The 'default' location ( where it worked with the
> console mono application using the wrapped classes) did not work, as
> well as neither did /usr/lib nor /usr/local/lib/mono/1.0 ( my mono
> installation prefix was /usr/local).

The library needs to be in a place where the operating system
dynamic linker will find it. /usr/lib should be fine, maybe you
didn't run ldconfig or the name of the lib is not what is
expected. Set the env vars:
	MONO_LOG_LEVEL="debug"
	MONO_LOG_MASK="dll"
and run the app again and you should have a very verbose log of the
failure.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better