[Mono-dev] WebKit not working.

Jo Shields directhex at apebox.org
Fri Aug 3 12:12:42 UTC 2012


On 03/08/12 13:00, mono-devel-list-request at lists.ximian.com wrote:
> Message: 1
> Date: Tue, 31 Jul 2012 04:12:19 -0700 (PDT)
> From: aditya3098 <aditya3098 at gmail.com>
> To: mono-devel-list at lists.ximian.com
> Subject: [Mono-dev] WebKit not working.
> Message-ID: <1343733138981-4650657.post at n4.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> I am using Ubuntu and installed monodevelop and webkit cli bindings.
> If I run a program that uses webkit it doesn't show and the debugger gives:
>
> Unhandled Exception: System.TypeInitializationException: An exception was
> thrown by the type initializer for WebKit.WebView --->
> System.DllNotFoundException: webkit-1.0.so.2
>    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 MainWindow..ctor () [0x00000] in <filename unknown>:0
>    at PePaDa.MainClass.Main (System.String[] args) [0x00005] in
> /home/aditya/Projects/PePaDa/PePaDa/Main.cs:11
> [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An
> exception was thrown by the type initializer for WebKit.WebView --->
> System.DllNotFoundException: webkit-1.0.so.2
>    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 MainWindow..ctor () [0x00000] in <filename unknown>:0
>    at PePaDa.MainClass.Main (System.String[] args) [0x00005] in
> /home/aditya/Projects/PePaDa/PePaDa/Main.cs:11
> The application was terminated by a signal: SIGHUP
>
>
>
> I tried sudo link /usr/lib/libwebkitgtk-1.0.so.0 /usr/lib/webkit-1.0.so.2
> but it did not work. Please Help.



Where on earth is your webkit-sharp.dll from? The package in Ubuntu 
explicitly includes a dllmap:

<configuration>
   <dllmap dll="webkit-1.0" target="libwebkitgtk-1.0.so.0"/>
</configuration>

There should be no point where webkit-1.0.so.2 is invoked directly


More information about the Mono-devel-list mailing list