Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / June 2004

Tip: Looking for answers? Try searching our database.

Out of process ActiveX controls - WebBrowserControl......

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robin Tucker - 07 Jun 2004 16:10 GMT
I have problem with my project with respect to "out of process" controls.
One of these controls is the WebBrowser control and the other an in-house
OLE control that has had the ActiveX interfaces bolted onto it to try and
get it to work with VB.NET.

When I attempt to use either of these controls, I get an exception in the
IntialiseComponent section of my forms.  Specifically, when "EndInit" is
called. With our in-house control I get:

   "A first chance exception of type 'System.InvalidCastException' occurred
in system.windows.forms.dll

       Additional information: The source object does not expose
IConnectionPointContainer."

However, we have implemented IConnectionPointContainer.  With the
WebBrowserControl I get:

   "A first chance exception of type
'System.Runtime.InteropServices.COMException' occurred in
system.windows.forms.dll

   Additional information: Unknown error"

Now, if I create a brand new project and place either of these controls onto
the form and run it, there is no problem at all (just to confuse the issue)
and I don't get these exceptions.

Any ideas!?

Robin
Robin Tucker - 07 Jun 2004 16:23 GMT
Well, I managed to get the WebBrowser control to work ok by switching OFF
the "StatusBar" property (setting it to false).  Have no idea whats going on
here... totally weird...

> I have problem with my project with respect to "out of process" controls.
> One of these controls is the WebBrowser control and the other an in-house
[quoted text clipped - 27 lines]
>
> Robin
- 28 Jun 2004 16:29 GMT
Consider yourself lucky, I never had a status bar and I'm gettting the error
consistently.  I have a plain Winform, with a browser control filling the
winform with no address bar, no status bar, nothing, just the browser
(control is handled by local html pages) and everytime it loads, I get the
same error you described.  I do have the CLR exceptions set to always break
into the debugger, and can be ignored if it is set to Continue, but I'd
rather fix the error.  I might end up having to open a support incident.

> Well, I managed to get the WebBrowser control to work ok by switching OFF
> the "StatusBar" property (setting it to false).  Have no idea whats going on
[quoted text clipped - 34 lines]
> >
> > Robin

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.