Exportar (0) Imprimir
Expandir Todos

AspTrackThreadingModel Metabase Property

The AspTrackThreadingModel property specifies whether IIS checks the threading model of any components that your application creates.

ImportantImportante
This metabase property is usually best left at the default value (false), so that ASP will not use system resources to track the threading model and your ASP application provides the best possible performance. If this property is set to false, and you give application scope to components that you create, those components must aggregate the free-threaded marshaler. If you do not aggregate the free-threaded marshaler, ASP generates an error when you try to create an instance of the component. For more information about this topic, see the "Building Components for ASP" section in the Platform SDK.

Another reason to leave this property at the default setting (false), is that any objects that are created in your ASP application without the OnStartPage or OnEndPage method are released earlier than they would be otherwise and there is degradation of your application's scalability. For more details about improving performance, see Optimizar o Desempenho. Also with this property set to false ASP is prevented from writing the response before destroying the component.

noteNota
In IIS 4.0, the default value for this property was true.

Setting this property at the IIsWebService level applies to all in-process and pooled out-of-process application keys, at all levels. Metabase settings at the IIsWebServer level or lower are ignored for in-process and pooled out-of-process applications. However, settings at the IIsWebServer level or lower are used if that key is an isolated out-of-process application.

 

Attribute Name Attribute Value

XML Data Type

Boolean

WMI Data Type

Boolean

ADSI Data Type

Boolean

ABO Data Type

Boolean

ABO Metabase Identifier

MD_ASP_ID_LAST

Attributes

INHERIT

Default Value

false

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

iis_md_ut_wam

ID

7020

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

 

Metabase Path IIS Admin Object Type

/LM/W3SVC/n/ROOT /LM/W3SVC/n/ROOT/virtual_directory_name

IIsWebVirtualDir

/LM/W3SVC/n

IIsWebServer

/LM/W3SVC

IIsWebService

/LM/W3SVC/n/ROOT/physical_directory_name /LM/W3SVC/n/virtual_directory_name/physical_directory_name

IIsWebDirectory

Code Example

For general code examples, see Code Examples to Configure Metabase Properties.

Considera isto útil?
(1500 caracteres restantes)
Obrigado pelos seus comentários

Conteúdo da Comunidade

Mostrar:
© 2014 Microsoft