[Mono-dev] DllNotFoundException: libgtkembedmoz.so how to solve ?

Jurgen Schoeters jurgen.schoeters at gmail.com
Sat Feb 4 11:03:24 EST 2006


My program gives a DllNotFound exception when i try to run it:

[jurgen at Paris client_app]$ mono Asic_Test_Machine.exe

Unhandled Exception: System.TypeInitializationException: An exception
was thrown  by the type initializer for Gecko.WebControl --->
System.DllNotFoundException: libgtkembedmoz.so
in (wrapper managed-to-native) Gecko.WebControl:gtk_moz_embed_get_type
in <0x00014> Gecko.WebControl:get_GType ()
in <0x00026> GtkSharp.GeckoSharp.ObjectManager:Initialize ()
in <0x00007> Gecko.WebControl:.cctor ()--- End of inner exception stack
trace -- -

in <0x00000> <unknown method>
in <0x021d4> Asic_Test_Machine.Gui:SetupGui ()
in <0x0000c> Asic_Test_Machine.Gui:.ctor ()
in <0x00016> Asic_Test_Machine.Asic_Test_Machine:Main (System.String[]

I bypassed the problem by setting  LD_LIBRARY_PATH environment variable 

setenv LD_LIBRARY_PATH /usr/lib/mozilla-1.7.12/
mono Asic_Test_Machine.exe

But I don't like this solution because my program should be able to run
without mozilla, what is the best solution ?


Jurgen Schoeters

More information about the Mono-devel-list mailing list