Partager via


comPlus Element for asp [IIS Settings Schema]

Note

For more information about the comPlus element, see the following topic on the Microsoft IIS.net Web site: ASP COM Plus <comPlus>.

Configures COM+ settings.

Syntax

Attributes and Elements

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute

Description

appServiceFlags

Optional enum attribute.

Contains the flags that must be set to enable COM+ services on your IIS applications.

The appServiceFlags attribute can be one of the following possible values. The default is None.

ValueDescription
NoneSpecifies that no flags are set. The numeric value is 0.
EnableTrackerA value of true enables COM+ tracker, which allows administrators or developers to debug ASP applications. The numeric value is 1.
EnableSxSA value of true enables COM+ side-by-side assemblies, which allow ASP applications to specify which version of a system DLL or classic COM component to use, such as WinHTTP 5.1, Shell Common Controls version 6.0 (Comctl32.dll), GDI Plus version 1.0 (GDIplus.dll), and Visual C++ Run-time Libraries version 6.0. If this value is set to true, you must also specify a value for the sxsName attribute. The numeric value is 2.
UsePartitionA value of true enables COM+ partitioning, which can be used to isolate Web applications into their own COM+ partitions. COM+ partitions can hold different versions of your own custom COM components. If this value is set to true, you must also specify a value for the partitionId attribute. The numeric value is 4.

executeInMta

Optional Boolean attribute.

Specifies whether ASP runs in a multithreaded environment.

The default value is false.

partitionId

Optional string attribute.

Specifies the Globally Unique Identifier (GUID) of the COM+ partition.

Note

This attribute is required when the appServiceFlags attribute is set to UsePartition

The default value is "00000000-0000-0000-0000-000000000000".

sxsName

Optional string attribute.

Note

This property is required when the appServiceFlags attribute is set to EnableSxS.

Specifies the name of the COM+ application.

trackThreadingModel

Optional Boolean attribute.

Specifies whether thread model checking is enabled. A value of true means that IIS honors the threading model of the components that an application creates.

The default value is false.

Child Elements

None.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by IIS 7.

system.webServer

Specifies the top-level section group (in ApplicationHost.config) in which this element is defined.

asp

Configures settings for ASP applications.

Remarks

For more information about the comPlus element, see the following topic on the Microsoft IIS.net Web site: ASP COM Plus <comPlus>.

Element Information

Configuration locations

Machine.config

ApplicationHost.config

Root application Web.config

Application Web.config

Directory Web.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0

See Also

Reference

cache Element for asp [IIS Settings Schema]

limits Element for asp [IIS Settings Schema]

session Element for asp [IIS Settings Schema]