[Mono-list] DLLMapping for ASP.NET based projects

Amc Gmail amc1999 at gmail.com
Thu Aug 30 09:29:11 EDT 2007


1. try full name and full path to "real" lib file, not to soft link
(if it was).
i mean target="/home/me/xsp/site/bin/libsqlite3.dylib.1.2.3"

2. you can see what exact lib name(s) mono is looking for by using
MONO_LOG_LEVEL=debug as described in
http://www.mono-project.com/DllNotFoundException

sorry, i don't have apple around and can not be more specific.


On 8/30/07, R. Tyler Ballance <tyler at monkeypox.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> On Aug 29, 2007, at 7:08 AM, Amc Gmail wrote:
>
> > in our case:
> > 1. we have api.dll which doing some p/invoke from our libapi.so
> >
> > 2. in api.cs source code DllImport look like this:
> >         [DllImport("api")]
> >         private extern static int fnc(ref IntPtr io_ptr);
> >
> > 3. in web-site/bin i have api.dll and api.dll.config which is:
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <configuration>
> >     <!--
> >         to debug under xsp:      target="../build/libapi.so.1.0.1"
> >         to run under mod_mono:   target="/path/to/our/lib/libapi.so.
> > 1.0.1"
> >         to use /usr/lib default: target="api"
> >     -->
> >    <dllmap dll="api" target="/path/to/our/lib/libapi.so.1.0.1" />
> > </configuration>
> >
> > as you can see i am not changing mono standard dll mappings which you
> > may want to, but hope my sample would help somehow.
> > good luck :)
> >
>
> Yeah, tried this and it still doesn't work :/
>
> My config is:
>
> <?xml version="1.0" encoding="utf-8"?>
> <configuration>
>          <dllmap target="./bin/libsqlite3.dylib" dll="sqlite3"/>
> </configuration>
>
>
> Where ./bin/libsqlite3.dylib is in my xsproot directory's bin directory.
>
> Still no dice :-/
>
>
> Cheers
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (Darwin)
>
> iD8DBQFG1lx8A2GmJ0VpG78RAl9OAJ0c/O2OVeBepzl2Y58s13lYSCdFFQCghwuv
> ZExnR9IBpb5Mq5e9GVNGtVk=
> =CeJL
> -----END PGP SIGNATURE-----
>


More information about the Mono-list mailing list