Closed GoogleCodeExporter closed 8 years ago
Make sure you have put the webkit engine inside your build directory. This
often happens when the webkit engine (or some files of it) is missing. You can
find these files inside %solutiondir%\webkit. Just copy all of them to your
debug/release folder and try running.
Original comment by tsumalis96@gmail.com
on 24 Sep 2011 at 8:06
Doesn't work for me either. The examples included in the library works
properly, but when I
create my own project the execution fails.
I am following this procedure:
1. Reference OpenWebKitSharp.dll and WebKit.Interop.dll in the project
2. Copy all the content of the webkit folder inside the build directory
3. Copy OpenWebKitSharp.manifest inside the build directory
I'm using Visual C# 2010.
Original comment by fasece...@gmail.com
on 25 Sep 2011 at 1:28
Try opening OpenWebKitSharp.sln, go the the OpenWebKitSharp project and select
the build folder to your debug/release folder.
Also note that for webkit to function properly in Windows XP/Vista you must
have:
Microsoft Visual C++ 2005 Redistributable Package
Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package
Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security
Update.
Original comment by tsumalis96@gmail.com
on 25 Sep 2011 at 1:53
Followed your suggestion but unfortunately did not resolve the problem. I've
tried both ways, by either changing the OpenWebkitSharp folder to my project
folder, or by changing my project folder to the OpenwebkitSharp; in both cases
the application compiles OK (0 errors - 0 warnings); but when debugging, the
debugger hangs on the function Stop() located in WebKitBrowser.cs complaining
about a COM error.
My project application is simply a form with the browser (subclassed) without
any code.
However, if I switch to the included sample ( OpenWebKitSharp Example ) all
works as espected, I can browse Internet without any problem.
My operating system is Windows 7 32bit Home.
Original comment by fasece...@gmail.com
on 25 Sep 2011 at 5:37
[deleted comment]
Just found out that this problem occurs only when using a subclassed browser.
If I use directly a Webkit.WebKitBrowser control in my form, all works fine.
But if I use a subclassed one it will not work. Try using the following class
in a form:
namespace openWebkitExample
{
class myWebkitBrowser : WebKit.WebKitBrowser
{
}
}
Using myWebkitBrowser in a form will hang the debugger as described above.
Original comment by fasece...@gmail.com
on 25 Sep 2011 at 6:20
Still not working but now im getting different erorr. I copy all code and
style, all files is in their places.What do I need to do to use it?
My operating system is Windows 7 32bit Ultimate
Im using visual studio 2010
Original comment by kickq...@gmail.com
on 26 Sep 2011 at 1:40
Attachments:
Clicking continute in Debugging will just continue without any problem. This
exception occurs because the Url = null and we try to create a URL from a null
String. Wait until release 1.8 or fix the code using this:
Old:
intelloTech.TukruEventRaiser.RaiseDocumentCompletedEvent(this.Url.ToString());
New:
try
{
intelloTech.TukruEventRaiser.RaiseDocumentCompletedEvent(this.Url.ToString());
}
catch { }
Try Catch will prevent an exception from being raised and in the same time will
not stop you while debugging.
Original comment by tsumalis96@gmail.com
on 26 Sep 2011 at 1:05
when will be release 1.8?
Original comment by kickq...@gmail.com
on 26 Sep 2011 at 1:57
I have still not decided about 1.8 but probably in 1-2 weeks
Original comment by tsumalis96@gmail.com
on 26 Sep 2011 at 7:20
I am also having issues getting this to work properly. I am able to compile
everything ok, but when I run a simple app I get the following exception:
System.Runtime.InteropServices.COMException was unhandled
Message=Error HRESULT E_FAIL has been returned from a call to a COM component.
Source=WebKit.Interop
ErrorCode=-2147467259
StackTrace:
at WebKit.Interop.WebViewClass.isLoading()
at WebKit.WebKitBrowser.Stop()
at WebKit.WebKitBrowser.set_Url(Uri value)
at MyBrowser.Form1.InitializeComponent() in D:\Projects\MyBrowser\MyBrowser\Form1.Designer.cs:line 119
at MyBrowser.Form1..ctor() in D:\Projects\MyBrowser\MyBrowser\Form1.cs:line 17
at MyBrowser.Program.Main() in D:\Projects\MyBrowser\MyBrowser\Program.cs:line 17
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Original comment by james...@gmail.com
on 12 Oct 2011 at 10:48
I don't know why this should happen...are you sure that all the needed files
are to your Build folder? Make sure that every file from the webkit folder of
OpenWebKitSharp is inside your build folder.
Original comment by tsumalis96@gmail.com
on 13 Oct 2011 at 2:34
Yes. I copied and pasted everything in the folder to my build folder. It's
strange that it builds just fine, but throws that exception when I try to run
it.
I'm on Win 7 Pro x64. Could the x64 have anything to do with it?
Original comment by james...@gmail.com
on 13 Oct 2011 at 4:22
I assume (and hope) not... I can see that your programm stops at the Stop()
method so I will try to look into the code and figure out the problem
Original comment by tsumalis96@gmail.com
on 14 Oct 2011 at 11:40
I was having the same COM error as James. I went into the form designer code
and commented out the line:
this.WebKitBrowser.Url = new System.Uri("about:blank", System.UriKind.Absolute);
and it worked fine
Original comment by KeithNYC
on 14 Oct 2011 at 5:10
By the way, VS will keep overwriting that commented out code above. You can
just set the Url to null and it works and VS won't overwrite it.
this.WebKitBrowser.Url = null;
Original comment by KeithNYC
on 14 Oct 2011 at 5:25
In 1.9 the default value for the Url is null as you can see:
private Uri initialUrl = null;
It was "about:blank" in 1.7 I think.
Original comment by tsumalis96@gmail.com
on 14 Oct 2011 at 6:38
Open OpenWebKitSharp Example project, change launch an external program folder
to "..\OpenWebKitSharp Source +
Examples\OpenWebKitSharp\OpenWebKitSharp\bin\Debug\OpenWebKitSharp Test.exe" ,
run and get error (): Failure to obtain a class factory for component with COM
CLSID {D6BCA079-F61C-4E1E-B453-32A0477D02E3} as a result of the following
error: 800736b1.
In my project, I do :
1. Reference OpenWebKitSharp.dll and WebKit.Interop.dll in the project
2. Copy all the content of the webkit folder inside the build directory
3. Copy OpenWebKitSharp.manifest inside the build directory
and i have Microsoft Visual C++ 2010 Redistributable Package (x86).
I add control in my form, but when debugging, i see error :
"Could not get the COM class factory for component with CLSID
{D6BCA079-F61C-4E1E-B453-32A0477D02E3} of the following error: 800736b1 Unable
to start application because of its parallel configuration is incorrect.
Additional information is contained in the application event log, or use the
command line sxstrace.exe for more information. (Exception from HRESULT:
0x800736B1)."
HELP ME!
My operating system is Windows 7 32bit
Im using visual studio 2010
Original comment by nenorma...@ya.ru
on 24 Oct 2011 at 8:20
WebKit requires that you have C++ 2005 Redistributable in any windows version
that you use, so you should try installing C++ 2005
Original comment by tsumalis96@gmail.com
on 24 Oct 2011 at 12:13
i instal http://www.microsoft.com/download/en/details.aspx?id=3387 and this is not help(
Original comment by nenorma...@ya.ru
on 25 Oct 2011 at 3:37
You will also need SP1 and ATL Security Update:
http://www.microsoft.com/download/en/details.aspx?id=14431
Original comment by tsumalis96@gmail.com
on 25 Oct 2011 at 1:15
this is i install too and not help too.
Original comment by nenorma...@ya.ru
on 26 Oct 2011 at 4:01
If you advanced from an earlier version to 1.9 then that might be the problem.
Try going to your build directory and deleting every webkit-related file (so
all the files apart from your exe and assemblies, dependencies etc.) and then
build OpenWebKitSharp to that folder. I hope this helps.
Original comment by tsumalis96@gmail.com
on 26 Oct 2011 at 12:23
I has no previous versions but I have deleted all files from my built folder
and copied from "webkit" folder them again and add if to folder of my project
build.
I'm also can succesfully add control on my form but such errors as I described
earlier still exists.
I failed to register Webkit.dll via Regsvr32 (I launch it under Administrator
privilegies). May be this information will be helpful? - error : "Failed to
launch appication due to incorrect parallel configuration"
Original comment by nenorma...@ya.ru
on 27 Oct 2011 at 6:25
I don't think that you should register webkit.dll. The problem might be
somewhere else. Tell me please, does the example project work?
Original comment by tsumalis96@gmail.com
on 27 Oct 2011 at 2:06
Open OpenWebKitSharp Example project, change launch an external program folder
to "..\OpenWebKitSharp Source +
Examples\OpenWebKitSharp\OpenWebKitSharp\bin\Debug\OpenWebKitSharp Test.exe" ,
run and get error (): Failure to obtain a class factory for component with COM
CLSID {D6BCA079-F61C-4E1E-B453-32A0477D02E3} as a result of the following
error: 800736b1.
Original comment by nenorma...@ya.ru
on 28 Oct 2011 at 2:57
This is either a problem of C++ 2005 or a problem with you computer. I cannot
help you anymore... Try reinstalling C++ 2005 Redistributable together with SP1
and ATL Security Update. If this doesn't help then I cannot do sth else about
it sorry...
Original comment by tsumalis96@gmail.com
on 28 Oct 2011 at 11:50
Try installing C++ Redistributable 2008. I found out that this is needed
instead of 2005.
Original comment by tsumalis96@gmail.com
on 25 Nov 2011 at 7:26
I had some of these issues initially but they were fixed by running this .net
uninstall tool http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx
and re installing all of the .net redistributables through windows update
Original comment by ben.war...@gmail.com
on 27 Nov 2011 at 12:25
I am happy that you solved it! Issue closed
Original comment by tsumalis96@gmail.com
on 27 Nov 2011 at 9:09
Original issue reported on code.google.com by
kickq...@gmail.com
on 24 Sep 2011 at 6:28Attachments: