8:06 AM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] STAThread, COM interop and ASP.net
Andy,
That was one of the things I was considering (and we're already using the
mshtml assembly in conjunction with the web browser control). However, we
were unable to get the mshtml D
SHTML reference.
-Andy Hopper
- Original Message -
From: "James Crowley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 3:48 PM
Subject: [ADVANCED-DOTNET] STAThread, COM interop and ASP.net
> Hi,
>
> My component uses the WebBrows
ssage -
From: "James Crowley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 3:48 PM
Subject: [ADVANCED-DOTNET] STAThread, COM interop and ASP.net
> Hi,
>
> My component uses the WebBrowser control (via COM interop) to grab
> cer
Hi James,
I have had the same problem and came up with the following solution: I
wrote a class which provides an apartment for the com object. The usage is
simple:
ComApartment ca = new ComApartment();
ca.Invoke(new SomeHandler(someObject.SomeFunction), new object[]{par1,
par2});
public class C
> To: [EMAIL PROTECTED]
> Subject: [ADVANCED-DOTNET] STAThread, COM interop and ASP.net
>
>
> Hi,
>
> My component uses the WebBrowser control (via COM interop) to grab
> certain bits of data from a web page. This works fine in a standard app,
> but when I call it from an AS
Hi,
My component uses the WebBrowser control (via COM interop) to grab
certain bits of data from a web page. This works fine in a standard app,
but when I call it from an ASP.net page, you are told that we're not
using an STA thread, and the ActiveX control requires it.
If I was writing an applic