[MonoDevelop] Using Gecko.WebControl

Paulo Aboim Pinto esqueleto at tusofona.com
Sun Mar 2 10:01:53 EST 2008


Hello

I made a small application that use the control Gecko.WebControl to open
some WebSite. When I run using MonoDevelop everything goes well, but when I
try to run the exe file using the command: $ mono <application>.exe I get
this error:

Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for Gecko.WebControl --->
System.DllNotFoundException: /usr/lib/firefox/libgtkembedmoz.so
  at (wrapper managed-to-native) Gecko.WebControl:gtk_moz_embed_get_type ()
  at Gecko.WebControl.get_GType () [0x00000]
  at GtkSharp.GeckoSharp.ObjectManager.Initialize () [0x00000]
  at Gecko.WebControl..cctor () [0x00000] --- End of inner exception stack
trace ---

  at Yuwie_Control.RobotPresenter.Initialize () [0x00000]
  at MainWindow..ctor () [0x00000]
  at Yuwie_Robot.MainClass.Main (System.String[] args) [0x00000]


why!?!?
I just get this error when I run using the console. The file
libgtkembedmoz.so is on the place to be find:

$ ll /usr/lib/firefox/libgtkembedmoz.so
-rw-r--r-- 1 root root 79K 2008-02-07 11:08
/usr/lib/firefox/libgtkembedmoz.so


what I'm doing wrong??

Regards
Paulo Aboim Pinto
Odivelas - Portugal
-- 
Have income spending 5 minutes a day
Click here: http://bux.to/?r=esqueleto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20080302/04fc617a/attachment.html 


More information about the Monodevelop-list mailing list