To use an apartment-threaded component in an ASP.NET page, you must set the compatibility mode to ASP using the AspCompat="true" page directive. This allows the page to be executed on a single- threaded apartment ( STA ) thread, so that it can call into STA components (for example a component developed with VB6.0). However, in this mode, performance of the ASP.NET page can be quite severely degraded.