edusis / open-webkit-sharp

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

'WebKitBrowser' is ambiguous in the namespace 'WebKit'. #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
After following the instructions and referencing all nedded files as well as 
copying all th files to the bin\Debug I added the WebKitBrowser control to the 
form and it looked fine but when I try to run the 'WebKitBrowser' is ambiguous 
in the namespace 'WebKit' error occurs. How can that be fixed?

Original issue reported on code.google.com by n...@rehovot.ort.org.il on 1 Oct 2011 at 6:39

GoogleCodeExporter commented 9 years ago
If you moved from WebKit.NET to OpenWebKitSharp then maybe that is the problem. 
Try removing all the webkit-related references and adding the following from 
the debug folder of OpenWebKitSharp:
WebKit.Interop.dll
WebKit.Interop.Old.dll
OpenWebKitSharp.dll

Make sure that there is not both OpenWebKitSharp and WebKit.NET referenced (or 
2 versions of the same library) so that the debugger is not confused and 
doesn't know which object to use.

Original comment by tsumalis96@gmail.com on 1 Oct 2011 at 8:52

GoogleCodeExporter commented 9 years ago
I did as you said and now the error is - Type 'WebKit.WebKitBrowser' is not 
defined.

Original comment by n...@rehovot.ort.org.il on 1 Oct 2011 at 9:13

GoogleCodeExporter commented 9 years ago
Reference OpenWebKitSharp.dll and press Build.

Original comment by tsumalis96@gmail.com on 1 Oct 2011 at 12:12

GoogleCodeExporter commented 9 years ago
I referenced the OpenWebKitSharp.dll and pressed build and the same error 
occurs.

Original comment by n...@rehovot.ort.org.il on 1 Oct 2011 at 12:58

GoogleCodeExporter commented 9 years ago
Make sure you are targetting .NET Framework 2.0 and up.

Original comment by tsumalis96@gmail.com on 2 Oct 2011 at 8:39

GoogleCodeExporter commented 9 years ago
What do you mean by targetting .NET Framework?

Original comment by n...@rehovot.ort.org.il on 2 Oct 2011 at 2:05

GoogleCodeExporter commented 9 years ago
I mean what .NET Framework is your application designed for. When you create a 
project you select which .NET Framework you target. So, if your application is 
for 2.0, 3.5 or 4.0 then this is not the cause of your problem.

Original comment by tsumalis96@gmail.com on 3 Oct 2011 at 12:49

GoogleCodeExporter commented 9 years ago
OK so my application was targetting .NET Framework 4 Client so I changed it to 
.NET Framework 4 and nw the error is "An error occurred creating the form. See 
Exception.InnerException for details.  The error is: Failed to initialize 
activation context".

Original comment by n...@rehovot.ort.org.il on 3 Oct 2011 at 5:58

GoogleCodeExporter commented 9 years ago
So, now the only thing that remains is to put OpenWebKitSharp.manifest inside 
your build folder (where your exe is). You can find it inside 
%sloutiondir%\webkit 

Original comment by tsumalis96@gmail.com on 4 Oct 2011 at 7:03

GoogleCodeExporter commented 9 years ago
Now there is a different error: "An error occurred creating the form. See 
Exception.InnerException for details.  The error is: Retrieving the COM class 
factory for component with CLSID {D6BCA079-F61C-4E1E-B453-32A0477D02E3} failed 
due to the following error: 8007007e module not found. (Exception from HRESULT: 
0x8007007E)."

Original comment by n...@rehovot.ort.org.il on 4 Oct 2011 at 2:22

GoogleCodeExporter commented 9 years ago
WebKit needs Visual C++ Redistibutables 2005 in order to run in your computer 
(and every other computer). This error does occure only when the Visual C++ 
Redistibutables are not installed in your machine. You can download them from 
the Microsoft page.

Original comment by tsumalis96@gmail.com on 4 Oct 2011 at 7:11

GoogleCodeExporter commented 9 years ago
Visual C++ Redistibutables 2005 is already installed on my computer.

Original comment by n...@rehovot.ort.org.il on 4 Oct 2011 at 7:41

GoogleCodeExporter commented 9 years ago
Did WebKit.NET function properly when (and if) you used it? If it worked, then 
the problem occurs when OpenWebKitSharp tries to create a COM object with the 
CLSID {D6BCA079-F61C-4E1E-B453-32A0477D02E3} from WebKit.dll. I will try to 
look into this problem more for 1.8

Original comment by tsumalis96@gmail.com on 4 Oct 2011 at 7:59

GoogleCodeExporter commented 9 years ago
Yes - Webkit.NET worked properly.

Original comment by n...@rehovot.ort.org.il on 4 Oct 2011 at 8:10

GoogleCodeExporter commented 9 years ago
So, wait until 1.8 and if it also doesn't work then maybe it is your problem 
with C++. Are you sure that you have C++ 2005 Redistributable installed? (NO 
2008 OR 2010!)

Original comment by tsumalis96@gmail.com on 5 Oct 2011 at 10:49

GoogleCodeExporter commented 9 years ago
When will version 1.8 be released?

Original comment by n...@rehovot.ort.org.il on 5 Oct 2011 at 7:09

GoogleCodeExporter commented 9 years ago
It is almost ready. I am waiting for a friend to send me the LanguageLoader 
event and I will release it.

Original comment by tsumalis96@gmail.com on 6 Oct 2011 at 11:03

GoogleCodeExporter commented 9 years ago
I released 1.9 because I made more changes than I had expected so now you can 
try the 1.9 version.

Original comment by tsumalis96@gmail.com on 15 Oct 2011 at 6:37

GoogleCodeExporter commented 9 years ago
I added the WebKitBrowser from release 1.9 as explained in the how to use file. 
When it started to run it asked for a foler containing a specific file so I 
pointed it to the OpenWebkitSharp folder and now it throws a lot of errors.

Original comment by n...@rehovot.ort.org.il on 15 Oct 2011 at 10:29

GoogleCodeExporter commented 9 years ago
The file it asked for is ReourcesIntercepter.cs and the error are "object 
reference not set to an instance ofan object" inside that file.

Original comment by n...@rehovot.ort.org.il on 15 Oct 2011 at 10:40

GoogleCodeExporter commented 9 years ago
ResourcesIntercepter.cs is included in the source. You can also download it 
from here:
http://open-webkit-sharp.googlecode.com/svn/trunk/ReourcesIntercepter.cs

Original comment by tsumalis96@gmail.com on 15 Oct 2011 at 2:36

GoogleCodeExporter commented 9 years ago
I pointed to the file and it found it but showed errors inside the file. 
(Object reference not set to an instance of an object).

Original comment by n...@rehovot.ort.org.il on 15 Oct 2011 at 2:56

GoogleCodeExporter commented 9 years ago
In what line did it show this problem? Try pressing build...sometimes VS still 
shows errors when they actually don't.

Original comment by tsumalis96@gmail.com on 15 Oct 2011 at 6:57

GoogleCodeExporter commented 9 years ago
It build without a problem but when debugging it shows few errors: 
ReourcesIntercepter.cs - line 77 - ResourceStartedLoadingEvent(this, new 
WebKitResourcesEventArgs(res)); - object reference not set to an instance of an 
object.

Then 
intelloTech.TukruEventRaiser.RaiseDocumentCompletedEvent(this.Url.ToString()); 
- object reference not set to an instance of an object.

Then in the WebResourceLoadDelegate.cs -  
ResourceLoaded(resources[identifier]); - the given key was not present in the 
dictionay.

Note that if you press "continue" on all the error the program starts but when 
you navigate in the WebKitBrowser component it shows a bunch of errors in the 
files: WebResourceLoadDelegate.cs, ReourcesIntercepter.cs, and 
WebKitBrowser.cs. If you ignore all of that errors the WebBrowser navigate. 

Original comment by n...@rehovot.ort.org.il on 16 Oct 2011 at 6:29

GoogleCodeExporter commented 9 years ago
In addition when you run the .exe file of the program from the bin/debug folder 
it works well except for the fact download links which are not directly to the 
file won't work.

Original comment by n...@rehovot.ort.org.il on 16 Oct 2011 at 6:34

GoogleCodeExporter commented 9 years ago
Probably this occurs because no resource is to be loaded and it is null. I will 
fix it in 1.9R2 which I plan to release soon with one more event.

Original comment by tsumalis96@gmail.com on 16 Oct 2011 at 1:05

GoogleCodeExporter commented 9 years ago
got the same error: "An error occurred creating the form. See 
Exception.InnerException for details.  The error is: Retrieving the COM class 
factory for component with CLSID {D6BCA079-F61C-4E1E-B453-32A0477D02E3} failed 
due to the following error: 8007007e module not found. (Exception from HRESULT: 
0x8007007E)." and found a solution by copying all dll-s and folders from WebKit 
folder to the output folder of my app

Original comment by lena.v...@gmail.com on 23 Nov 2011 at 6:32

GoogleCodeExporter commented 9 years ago
Try installing this:

http://www.microsoft.com/downloads/details.aspx?familyid=2051a0c1-c9b5-4b0a-a8f5
-770a549fd78c&displaylang=en

Original comment by tsumalis96@gmail.com on 23 Nov 2011 at 7:42

GoogleCodeExporter commented 9 years ago
No way.... i did all suggested operation, but no way to run the example....
Retrieving the COM class factory for component with CLSID 
{D6BCA079-F61C-4E1E-B453-32A0477D02E3} failed due to the following error: 
8007007e module not found. (Exception from HRESULT: 0x8007007E)

;-(

Original comment by Lorenzo....@gmail.com on 21 Mar 2012 at 9:39

GoogleCodeExporter commented 9 years ago
Did you try every suggestion of the above comments? These errors offer occur 
either when not C++ libraries are not installed or the needed files are not 
present in the exe's folder.

Original comment by tsumalis96@gmail.com on 21 Mar 2012 at 3:10

GoogleCodeExporter commented 9 years ago
Same problem here, 30min from checkout and nothing working. I`m running under 
VS2010 SP1 and Win7 x64.

To make it work I installed:
MS C++ 2005 Redistributable
MS C++ 2008 Service Pack 1 Redistributable Package ATL Security Update (x86 and 
x64)
Apple Safari
Apple QuickTime

Any new suggestions?

Original comment by gblmarquez on 25 Mar 2012 at 1:28

GoogleCodeExporter commented 9 years ago
I forget to mention after install Apple Safari when I try to run the Example 
Project, I  started to receive new error from a message box (see attached)

Original comment by gblmarquez on 25 Mar 2012 at 1:33

Attachments:

GoogleCodeExporter commented 9 years ago
gblmarquez;
you need to install 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)

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