[Mono-list] DLLNotFoundException

Jonathan Gagnon jonathan.gagnon at croesus.com
Mon Dec 3 11:08:16 EST 2007

Indeed, that is very helpful.



-----Message d'origine-----
De : Adrien Dessemond [mailto:adrien.dessemond at softhome.net] 
Envoyé : Friday, November 30, 2007 4:00 PM
À : Jonathan Gagnon
Cc : mono-list at lists.ximian.com
Objet : Re: [Mono-list] DLLNotFoundException

Hi Jonathan,

No idea about if is is a defect or not on my side but the following could
help you :




On Fri, November 30, 2007 3:22 pm, Jonathan Gagnon wrote:
> Hi,
> I just upgraded to the latest mono release ( from, and 
> I get a DLLNotFoundException for a P/Invoke.  My method is defined 
> with the following DllImport attribute :
> [DllImport("MyAssembly")]
> I didn't specify the file extension of the aseembly on purpose because 
> I want my code to run on .NET/Windows (.dll extension) as well as 
> mono/Linux (.so extension).  Mono is able to find the file 
> MyAssembly.so, but mono isn't.  A workaround is to rename the 
> file and remove the .so extension.
> Is this an intended change or is this a regression?  Should I file a 
> bug report for this?
> Thanks,
> Jonathan
> _______________________________________________
> 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