[Gtk-sharp-list] webkit-sharp does not find webkit DLL

Jacek Rużyczka stacheldraht at interia.pl
Tue May 14 18:32:15 UTC 2013

Hi folks,

after upgrading my PC to openSuSE 12.3 (64bit), my C# app using a WebKit
browser widget inside a Gtk# window simply stopped working. Calling this
line of code…

overviewBrowser = new WebView();

…results in the following error message:

System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> System.TypeInitializationException:
An exception was thrown by the type initializer for WebKit.WebView --->
System.DllNotFoundException: webkit-1.0
  at (wrapper managed-to-native)
WebKit.Download:webkit_download_get_type ()
  at WebKit.Download.get_GType () [0x00000] in <filename unknown>:0 
  at GtkSharp.WebkitSharp.ObjectManager.Initialize () [0x00000] in
<filename unknown>:0 
  at WebKit.WebView..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at iwawi.ApplicationBaseWindow..ctor (System.String database,
iwawi.DBConnectionHandler conn) [0x0017c]
in /home/jacek/Documents/Projects/iwawi/iwawi/ApplicationBaseWindow.cs:82 

I found out that my installation does NOT contain a webkit-1.0 lib, only
a libwebkitgtk in version 1.0 and 3.0. Changing the
webkit-shrp.dll.config file didn't help:

  <dllmap dll="webkit-1.0" target="/usr/lib64/libwebkitgtk-1.0.so.0"/>
  <dllmap dll="webkit-3.0" target="/usr/lib64/libwebkitgtk-3.0.so"/>

These are the WebKit-related RPMs currently installed:

jacek at veteran:~> rpm -qa | grep webkit

What's wrong here? Does webkit-sharp ignore the information in the
config file?

Thank you for any useful hints.

Kind regards
Jacek Rużyczka

More information about the Gtk-sharp-list mailing list