clobba / open-webkit-sharp

Automatically exported from code.google.com/p/open-webkit-sharp
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Cannot find JSCore.dll #69

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
"Could not load file or assembly 'JSCore.dll' or one of its dependencies. The 
specified module could not be found."

When it does find it out of luck, there's another error.

"Retrieving the COM class factory for component with CLSID 
{D6BCA079-F61C-4E1E-B453-32A0477D02E3} failed due to the following error: 
80040154 Class not registered (Exception from HRESULT: 0x80040154 
(REGDB_E_CLASSNOTREG))."

There is more detail into my "Not working at all" issue.

I haven't managed to succeed once with using OpenWebKitSharp since 1.9, so do 
you have any idea what's going on?

Original issue reported on code.google.com by Knuckles...@gmail.com on 1 Feb 2012 at 8:29

GoogleCodeExporter commented 8 years ago
If it helps with anything, here is my code:
" Dim Browser As New WebKitBrowser
        TabControl1.TabPages.Add("New Page")
        TabControl1.SelectTab(Int)
        Browser.Name = "Web Browser"
        Browser.Dock = DockStyle.Fill
        TabControl1.SelectedTab.Controls.Add(Browser)
        AddHandler Browser.DocumentCompleted, AddressOf Done
        AddHandler Browser.DocumentTitleChanged, AddressOf WebKitBrowser_DocumentTitleChanged

        Browser.UserAgent = "Mozilla/5.0 (" & Environment.OSVersion.ToString & ") AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.872.0 Safari/535.2"
        AddHandler Browser.FaviconAvailable, AddressOf WebKitBrowser_FaviconAvailable
        AddHandler Browser.ProgressChanged, AddressOf WebKitBrowser_ProgressChanged
        AddHandler Browser.StatusTextChanged, AddressOf WebKitBrowser_StatusTextChanged
        int = int + 1
        If My.Settings.Homepage = "www.>.com" Then
            CType(TabControl1.SelectedTab.Controls.Item(0), WebKitBrowser).Navigate("http://www.google.com")
        Else"

Original comment by Knuckles...@gmail.com on 1 Feb 2012 at 8:30

GoogleCodeExporter commented 8 years ago
Your problem happens either because not all the needed files are in the exe's 
folder (the files from the "Core" folder of the OpenWebkitSharp solution) or 
because Microsoft C++ Redistributable is not 
installed(http://www.microsoft.com/downloads/details.aspx?familyid=2051a0c1-c9b5
-4b0a-a8f5-770a549fd78c&displaylang=en)

Original comment by tsumalis96@gmail.com on 2 Feb 2012 at 11:51

GoogleCodeExporter commented 8 years ago

Original comment by tsumalis96@gmail.com on 16 Feb 2012 at 7:32

GoogleCodeExporter commented 8 years ago
I followed all of the directions carefully and I too am seeing the same problem 
on two systems:
VS 2010 Pro - XP x32
VS 2010 Ultimate - Win7 x64

VC++ 2005/2008/2010 are all installed. I also verified that all files from 
/Core & /Webkit are copied to the build folder.

I have no idea how to get around this "Retrieving the COM class factory for 
component with CLSID {D6BCA079-F61C-4E1E-B453-32A0477D02E3}" error. 

Original comment by sourceho...@gmail.com on 21 Feb 2012 at 8:31

GoogleCodeExporter commented 8 years ago
This is a follow-up to my previous comment (#4) just above.

Below is the stack trace dump I get when attempting to execute Example.exe 
(outside Visual Studio).

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x800736B1): Retrieving the COM 
class factory for component with CLSID {D6BCA079-F61C-4E1E-B453-32A0477D02E3} 
failed due to the following error: 800736b1 This application has failed to 
start because the application configuration is incorrect. Reinstalling the 
application may fix this problem. (Exception from HRESULT: 0x800736B1).
   at WebKit.WebKitBrowser..ctor()
   at OpenWebKitSharp_Test.Form1.AddTab(String url) in C:\Documents and Settings\**\Desktop\wk\Examples & Tests\OpenWebKitSharp Example\Form1.cs:line 504
   at OpenWebKitSharp_Test.Form1.Form1_Load(Object sender, EventArgs e) in C:\Documents and Settings\**\Desktop\wk\Examples & Tests\OpenWebKitSharp Example\Form1.cs:line 207
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Example
    Assembly Version: 2.3.0.4276
    Win32 Version: 2.3.0.4276
    CodeBase: file:///C:/Documents%20and%20Settings/**/Desktop/wk/build/Example.exe
----------------------------------------
OpenWebKitSharp
    Assembly Version: 2.7.0.1
    Win32 Version: 2.7.0.0001
    CodeBase: file:///C:/Documents%20and%20Settings/**/Desktop/wk/build/OpenWebKitSharp.DLL
----------------------------------------
WebKit.Interop
    Assembly Version: 536.0.0.0
    Win32 Version: 536.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/**/Desktop/wk/build/WebKit.Interop.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.235 built by: RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.236 built by: RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Could this error be at all related to .NET framework packages?

Original comment by sourceho...@gmail.com on 21 Feb 2012 at 8:49

GoogleCodeExporter commented 8 years ago
Another quick follow-up. I retested the Example project binary an other Win7 
machine with additional VC++ packages, hotfixes, ect all installed. And it 
works! 

At this point I am convinced the problem was indeed with missing .NET 
assemblies in the GAC. Whatever was missing was not installed automatically by 
Windows Updates either.

I want to use open-webkit-sharp on a client-side application and this issue of 
missing assemblies is a big problem as I cannot expect clients to installs 
nearly half a dozen VC++ runtimes to make it run correctly. These external 
project dependencies make open-webkit-sharp very non-portable and difficult to 
setup for end-users.

Do you think it would be possible to package all necessary DLLs directly in the 
binaries folder to overcome whatever could be missing from the GAC?

Original comment by sourceho...@gmail.com on 22 Feb 2012 at 2:45

GoogleCodeExporter commented 8 years ago
I don't believe that's possible. You could install all these dependencies 
silently and I know that Advanced Installer provides this feature (not free 
though). The dependencies are not OpenWebKitSharp dependencies, but WebKit 
ones, so there is no way we can avoid this problem.

Original comment by tsumalis96@gmail.com on 23 Feb 2012 at 7:59

GoogleCodeExporter commented 8 years ago
I had this problem on a 64bit Win7 Ultimate PC and used ProcMon to track it 
down.  There is a file called msvcr100.dll that JSCore.dll needs and this file 
was not available in system32, but the DLL was there but with a dotnet4 
specific suffix.  I copied this DLL and renamed it to msvcr100.dll to fix the 
issue.

Original comment by glaserme...@gmail.com on 31 May 2012 at 1:15

GoogleCodeExporter commented 8 years ago
I had same error, this is what I did:

I installed this: http://www.microsoft.com/en-us/download/details.aspx?id=26347
see if it gets any better. (Microsoft Visual C++ 2005 Service Pack 1 
Redistributable Package MFC Security Update)
+
you need to build everything as "Release" if you want to redistribute it.
As tsumalis96@gmail.com said, WebKit is the one who is depending on the 
library. You should be able to get WebKit latest code & build it statically 
theoretically and then you don't need the C++2005 thing.

Original comment by ChrisEel...@gmail.com on 29 Jul 2012 at 3:27

GoogleCodeExporter commented 8 years ago
I got the same problem with WebKit. I could solve it by installing Microsoft 
Visual C++ 2010 Redistributable Package. 
http://www.microsoft.com/en-us/download/details.aspx?id=5555 

Original comment by suga...@gmail.com on 26 Sep 2012 at 5:47

GoogleCodeExporter commented 8 years ago
Hi,

I had the same problem. It disappeared when I installed the Microsoft Visual 
C++ 2008 but the 32-bit version. I had installed just the 64-bit version before.

Original comment by magicdr...@gmail.com on 26 Sep 2012 at 5:52