Re: [ADVANCED-DOTNET] STAThread, COM interop and ASP.net

2002-12-02 Thread Slavin, Sean
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

Re: [ADVANCED-DOTNET] STAThread, COM interop and ASP.net

2002-12-02 Thread James Crowley
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

Re: [ADVANCED-DOTNET] STAThread, COM interop and ASP.net

2002-12-02 Thread Andrew Hopper
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

Re: [ADVANCED-DOTNET] STAThread, COM interop and ASP.net

2002-11-28 Thread alex_f_il
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

Re: [ADVANCED-DOTNET] STAThread, COM interop and ASP.net

2002-11-28 Thread Richard Birkby
> 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

[ADVANCED-DOTNET] STAThread, COM interop and ASP.net

2002-11-27 Thread James Crowley
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