Adi,
In ASP.NET, you should not set the threading model for the threads.
Rather, if you have to use a STA component, set the AspCompat attribute on
the page directive to true, like so:
<%@ Page AspCompat="true " %>
This can have an impact on performance, and if possible, you should
migrate the code to .NET.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard. caspershouse.co m
"anadimpa" <an******@discu ssions.microsof t.com> wrote in message
news:C1******** *************** ***********@mic rosoft.com...
Hello,
I am using a COM object which requires the use of Single Thread Apt.. I
have used this before in Windows/Console applications which have the
Main[]
methods
[STAThread]
static void Main(string[] args)....
How can I use this in a regular web page?
thanks
--
adi