AspTrackThreadingModel
AspTrackThreadingModel specifies whether IIS will check the threading model of any components that your application creates.
Important 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 will usually provide 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 will generate 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 created in your ASP application without the OnStartPage or OnEndPage method will be released earlier than they would be otherwise. This should improve your application's scalability. For more details about improving performance, see "Performance Tuning" in IIS Help, which is accessible from IIS Manager.
Note 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 will be ignored for in-process and pooled out-of-process applications. However, settings at the IIsWebServer level or lower will be used if thatkey 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 |
StartingNumber | Not applicable |
EndingNumber | 0 |
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, please see Code Examples to Configure Metabase Properties