[Mono-osx] Mono.Framework 1.2.6 - System.DllNotFoundException
Geoff Norton
gnorton at novell.com
Thu Feb 28 17:34:25 EST 2008
Ben,
On 20-Feb-08, at 11:37 PM, Ben Hakim wrote:
> Hi everyone, I'm new to the list (but not to Mono) and wanted to say
> hello :)
>
> I'm using the System.IO.Compression.DeflateStream to handle some
> streams. This apparently depends on Mono.Posix.Dll which internally
> calls a "DllImport" on "MonoPosixHelper." The executable that I'm
> using has been bundled with Mono Linker / mkbundle2.exe with the --
> deps option. Everything is working great, EXCEPT for functions
> requiring MonoPosixHelper. The following exception is raised:
>
> System.DllNotFoundException: /Library/Frameworks/Mono.framework/
> Versions/1.2.6/lib/libMonoPosixHelper.dylib
> at (wrapper managed-to-native)
> System.IO.Compression.DeflateStream:create_z_stream
> (System.IO.Compression.CompressionMode,bool)
> at System.IO.Compression.DeflateStream..ctor (System.IO.Stream
> compressedStream, CompressionMode mode, Boolean leaveOpen, Boolean
> gzip) [0x00000]
> at System.IO.Compression.DeflateStream..ctor (System.IO.Stream
> compressedStream, CompressionMode mode, Boolean leaveOpen) [0x00000]
> at (wrapper remoting-invoke-with-check)
> System.IO.Compression.DeflateStream:.ctor
> (System.IO.Stream,System.IO.Compression.CompressionMode,bool)
>
>
> The file definitely exists at /Library/Frameworks/Mono.framework/
> Versions/1.2.6/lib/libMonoPosixHelper.dylib
>
> This location has been referenced through a DllMap entry in the
> following .config file:
>
> <configuration>
> <dllmap dll="MonoPosixHelper" target="/Library/Frameworks/
> Mono.framework/Versions/1.2.6/lib/libMonoPosixHelper.dylib" />
> </configuration>
>
> Has anyone experienced an issue like this before?
>
I cannot replicate your issue and the file is in fact there. Can you
rerun your program with:
export MONO_LOG_MASK=dll
export MONO_LOG_LEVEL=debug
Thanks!
-g
More information about the Mono-osx
mailing list