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

Amc Gmail amc1999 at gmail.com
Wed Aug 29 10:08:15 EDT 2007

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:
        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"?>
        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" />

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 :)

On 8/28/07, R. Tyler Ballance <tyler at monkeypox.org> wrote:
> Hash: SHA1
> I've been trying to figure this one out for a while, but I can't seem
> to crack it. Apple distributes a crap version of SQLite so I'm trying
> to get Mono.Data.Sqlite.dll to map properly to my own version (more
> recent, etc) with my ASP.NET based project (using xsp2 now) and I'm
> having an awful lot of trouble getting the "usual' dllmap sort of
> stuff in my Mono.Data.Sqlite.dll.config to work properly
> Any tips on getting ASP.NET code that has to p/invoke to properly
> DLLMap like EXEs do?
> Cheers,
> - -R. Tyler Ballance
> Version: GnuPG v1.4.7 (Darwin)
> pj2A64YCb1fkOekenctGkuc=
> =kBGb
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

More information about the Mono-list mailing list