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

Miquel Ramírez Miquel Ramírez
Mon, 24 Jan 2005 22:06:58 +0100


Thanks for the tip, but I fixed it by 'exhaustive search' i.e. reading
exhaustively all mono manpages :) Then I realized I had forgot to add
the following:

<configuration>
        <!-- snipped -->
        <dllmap dll="CsharpFrontend.dll" target="libCppBackend.so"/>
</configuration>

libCppBackend.so was already placed in a "smart" place: $(MONO_PREFIX)/lib.

Thanks!

Miguel.

PS: I solved the logging issue (to some extent) by relying on log4net
[http://logging.apache.org/log4net]. Better than having
Console.WriteLines all over the place ...
PS2: Also tried the <trace> feature in the web service 'descriptor'
but it just traced the messages passed forth and back the server :(

On Mon, 24 Jan 2005 19:11:34 +0100, Paolo Molaro <lupus@ximian.com> wrote:
> 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
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>