[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:

<configuration>
  <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"/>
</configuration>

These are the WebKit-related RPMs currently installed:

jacek at veteran:~> rpm -qa | grep webkit
webkit-jsc-3-1.10.2-3.2.1.x86_64
kwebkitpart-1.3.1-2.1.1.x86_64
libwebkitgtk-3_0-0-1.10.2-3.2.1.x86_64
libwebkitgtk3-devel-1.10.2-3.2.1.x86_64
libproxy1-pacrunner-webkit-0.4.11-2.1.1.x86_64
libwebkitgtk-1_0-0-1.10.2-3.2.1.x86_64
webkit-sharp-0.3-8.1.noarch
libwebkitgtk3-lang-1.10.2-3.2.1.noarch
libwebkit2gtk-3_0-18-1.10.2-3.2.1.x86_64

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