[Mono-dev] was [DeflateStream on OSX], now: embedded mono not finding some mono libs

Jonathan Shore jonathan.shore at gmail.com
Tue Dec 20 13:46:59 EST 2011

I received the exception below when trying to create a gzip deflate stream.   I have since located the libMonoPosixHelper.dylib in the frameworks directory:


However, when mono is embedded, it seems to be unable to locate DLLs for dynamic loading.   Is there some environment variable and/or function I need to call on embedded CLR setup?

I am doing the following at startup:

	// if debugging, setup
	if (debugarg != NULL)
		mono_jit_parse_options (1, &debugarg); 
   		mono_debug_init (MONO_DEBUG_FORMAT_MONO);
	// create AppDomain
	_domain = mono_jit_init (assemblypath.c_str());
	_core = mono_domain_assembly_open (_domain, assemblypath.c_str());

Is there something further I should do?


System.Exception: failed to load series: EQUITY:FSLR_32902, because:  ---> System.DllNotFoundException: MonoPosixHelper
  at (wrapper managed-to-native) System.IO.Compression.DeflateStream:CreateZStream (System.IO.Compression.CompressionMode,bool,System.IO.Compression.DeflateStream/UnmanagedReadOrWrite,intptr)
  at System.IO.Compression.DeflateStream..ctor (System.IO.Stream compressedStream, CompressionMode mode, Boolean leaveOpen, Boolean gzip) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.Compression.DeflateStream:.ctor (System.IO.Stream,System.IO.Compression.CompressionMode,bool,bool)
  at System.IO.Compression.GZipStream..ctor (System.IO.Stream compressedStream, CompressionMode mode, Boolean leaveOpen) [0x00000] in <filename unknown>:0 
  at System.IO.Compression.GZipStream..ctor (System.IO.Stream compressedStream, CompressionMode mode) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.Compressi

On Dec 20, 2011, at 1:06 PM, Jonathan Shore wrote:

> Hi,
> I attempted to use System.IO.Compression.DeflateStream and encountered a DLL load error when DeflateStream attempts to load the MonoPosixHelper DLL.   Searching in 
> 	/Library/Frameworks/Mono.framework/Libraries/mono
> did not find the MonoPosixHelper dll.  Is this DLL / implementation only available on specific platforms or is that it is missing an oversight on the 2.10.6 distribution?
> Should this not be available any recommended libraries for gzip compression / decompression?
> Thanks
> Jonathan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20111220/33a4f6d4/attachment-0001.html 

More information about the Mono-devel-list mailing list