That article is quite old and predates even MTS. Naturally, it talks
about ASP, not ASP.NET.
"Willy Denoyette [MVP]" <willy.denoyette@telenet.be> wrote in message
news:%23FRb0LDgHHA.4596@TK2MSFTNGP05.phx.gbl
"Igor Tandetnik" <itandetnik@mvps.org> wrote in message
news:%234TnJcReHHA.3960@TK2MSFTNGP02.phx.gbl...
Yes. As far as I know, an ASPX page is processed by a dedicated STA
thread, and your object will happily run on the same thread.
Igor, asp.net processes the request on a thread taken from the MTA
thread pool, unless the page is marked with the AspCompat="True"
attribute, this is a departure from the asp model.
I admit I know very little about ASP. However, that article I quoted (
http://msdn2.microsoft.com/en-us/library/ms951557.aspx ) seems to suggest
otherwise. It claims that free-threaded objects (those running in MTA)
would be accessed via proxy by the page, while apartment-threaded (STA)
objects are accessed directly. The only way this is possible is if the
page processing runs on STA.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925