Thanks for the reply. Yesterday, I stumbled across the MTA vs. STA issue.

Moving COM+ Class (C2) to an out-of-process "Server" application allowed me
to work-around the apparent inability to call an in-process STA COM+ class
from a MTA ThreadPool thread.

Is this the only approach that will work when attempting to interact with
COM+ Classes on a ThreadPool Thread?

Ed thanks for the reply!
----- Original Message -----
From: "Ed Stegman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 03, 2003 4:20 AM
Subject: Re: [ADVANCED-DOTNET] ThreadPool and COM+


> >>3) Is there some security or thread related issue here that I'm just
> not
> >>   seeing? And does this underlying issue explain why things work
> during
> >>   Debug and fail when not running under an IDE managed thread?
>
>
> Yes, because the debugger runs your code in an STA. You'll need to run
> your ASP.Net page in an STA thread in order to run COM+ components
> from it. You can do this by using the AspCompat directive (attribute?)
> in the page.
>
> <%@ Page AspCompat="true" %>
>
> Keep Smilin'
> Ed Stegman
>
> ===================================
> This list is hosted by DevelopMentor�  http://www.develop.com
> NEW! ASP.NET courses you may be interested in:
>
> 2 Days of ASP.NET, 29 Sept 2003, in Redmond
> http://www.develop.com/courses/2daspdotnet
>
> Guerrilla ASP.NET, 13 Oct 2003, in Boston
> http://www.develop.com/courses/gaspdotnet
>
> View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to