In my aspx pages, I call a COM component that uses STA. So I use aspcompat=true parameter, but I want to understand the logic. What does it exactly do? As far as I know, in STA, it is assumed to be called only by one thread. So I should provide the thread safety myself.
If that's right, where does aspcompat parameter provide the thread safety? On the whole page, or just the point where I access the STA component?
This directive causes ASP.NET to provide access to ASP-intrinsic objects and changes the thread pool to MTA.
For more details checkout this