all groups > dotnet interop > june 2007 >
You're in the

dotnet interop

group:

Urgent Help: Problem with WebBrowser Control in Asp.net


Urgent Help: Problem with WebBrowser Control in Asp.net Mani
6/23/2007 12:00:00 AM
dotnet interop:
Hi All,
Greetings!

Am using the WebbrowserControl in Asp.net for my project. I have imported
the needed dll reference like mshtml, axshdocvw and interop etc. But while
accessing some frames(DOM object) using webbrowsercontrol, I got the
following Exception.

Error : 1
======
"Error HRESULT E_FAIL has been returned from a call to a COM component" and

Error:2
=====
"IHTMLDOMNode2_ownerDocument {"Unable to cast COM object of type
'mshtml.HTMLDocumentClass' to interface type 'mshtml.IHTMLDOMNode2'. This
operation failed because the QueryInterface call on the COM component for
the interface with IID '{3050F80B-98B5-11CF-BB82-00AA00BDCE0B}' failed due
to the following error: No such interface supported (Exception from HRESULT:
0x80004002 (E_NOINTERFACE))."} Object"

Any help, greatly appreciated!!
Thanks in Advance

Regards,
Manigandan


Re: Urgent Help: Problem with WebBrowser Control in Asp.net Mattias Sjögren
6/24/2007 12:00:00 AM
[quoted text, click to view]

Why?


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
AddThis Social Bookmark Button