[Mono-list] DllNotFoundException Woes

Robert Jordan robertj at gmx.net
Tue Jan 16 20:08:53 EST 2007


R. Tyler Ballance wrote:
> I've been using this Mono application I've developed just fine on a 
> handful of machines for quite some time, and we're starting to move it 
> over to new (SUSE/RHEL4) machines and all of a sudden, we're seeing just 
> System.DllNotFoundException's when we start it now.
> 
> I've even tried directly mapping with this exe.config file:
> <configuration>
>         <dllmap dll="Asset" target="/usr/local/ansa/bin/libAsset.so" />
>         <dllmap dll="Package" target="/usr/local/ansa/bin/libPackage.so" />
> </configuration>
> 
> 
> But regardless it's still spitting:
> 
> 
> System.DllNotFoundException: /usr/local/ansa/bin/libAsset.so
>   at (wrapper managed-to-native) Autonomic.Ansa.LibAsset:findOSName ()
> [...snip...]
> 
> 
> Despite the fact that I'm staring right at the file:
> tyler at Bismarck:~> ls -la /usr/local/ansa/bin/libAsset.so
> -rwxr-xr-x  1 root root 24352 2007-01-16 02:12 
> /usr/local/ansa/bin/libAsset.so
> 
> 
> I'm pretty sure everything's spelled right and mapped correctly, but on 
> neither my fresh SUSE 10.0 install, nor my fresh RHEL4 (both with just 
> mono-core installed) can seem to figure out where the frak the asset 
> library is :(

Try "ldd /usr/local/ansa/bin/libAsset.so". Maybe it's missing some
references. If not, you may trace Mono's native lib loader with

MONO_LOG_LEVEL=debug MONO_LOG_MASK=dll mono yourapp.exe

Robert



More information about the Mono-list mailing list