PRB: Access Check Is Enabled by Default When a COM+ Application Is Created (810153)
The information in this article applies to:
SYMPTOMSWhen you access COM+ components that are installed on a
Microsoft Windows Server, you may receive an access denied error with E_ACCESSDENIED HRESULT value. The following events may appear in the
System event log on a server that is running COM+ component:
Event Type: Error Event Source: DCOM Event
Category: None Event ID: 10002 Date: 1/1/2003 Time: 8:00:00
AM User: <ComputerName>\IWAM_<ComputerName> Computer:
<ComputerName> Description: Access denied attempting to launch a
DCOM Server. The server is:{12345678-1234-1234-1234-123456789ABC} The user is
IWAM_<ComputerName>/<ComputerName>
CAUSEIn Windows Server, some of the security defaults of a COM+
applications are modified. Enforce access checks for this
application security default at the application level is modified from
disabled to enabled. Enforce component level access checks
security default at the component level is modified from enabled to disabled.
If your application does not have any roles and any users in those roles, then
because the COM+ services enforce access checks, you receive access denied for
that particular COM+ component.RESOLUTIONThe COM+ application owner or an administrator must
determine the users who need access to the COM+ application. If you,
as a COM+ application owner or as an administrator, determine that limited
users must have access to the application, then you must explicitly add those
users to a role. If no suitable role exists, then you must add a new role.
To add users to roles, follow these steps:
- Open the Component Services Administrative
Tools window.
- On the tree, expand Component Services
folder.
- Expand Computers folder.
- Expand COM+ Applications
folder.
- Right-click the application with the attributes that you
have to modify.
- Expand Roles folder.
- Expand the role for which you have to add a
user.
- Right-click Users folder.
- Select New and then click
User.
- In the Select Users or Groups dialog box,
double-click the user or group that you have to add to the role and then click
OK.
If you, as a COM+ application owner or as an administrator,
determine that the COM+ application must not be secure, then you can disable
the COM+ application access check. In this case, not secure means that there is
no access check and that everyone has access to this application. To
disable access checks at the application Level, follow these steps:
- Open the Component Services Administrative
Tools window.
- On the tree, expand Component Services
folder.
- Expand Computers folder.
- Expand COM+ Applications
folder.
- Right-click the application with the attributes that you
have to modify.
- Click Properties.
- In the Properties dialog box, click the
Security tab.
- Under Authorization, click to clear the
Enforce access checks for this application option and then
click OK.
If you, as a COM+ application owner or as an administrator,
determine that the application needs the old defaults in Microsoft Windows 2000
and in Microsoft Windows XP, then you can set the old defaults. To
disable access checks at the application level and enable access checks at the
component Level, follow these steps:
- Open the Component Services Administrative
Tools window.
- On the tree, expand Component Services
folder.
- Expand Computers folder.
- Expand the COM+ Applications
folder.
- Right-click the application with the attributes that you
have to modify.
- Click Properties.
- In the Properties dialog box, click the
Security tab.
- Under Authorization, click to clear the
Enforce access checks for this application option and then
click OK.
- On the tree, expand Components
folder.
- Right-click the component with the attributes that you have
to modify.
- Click Properties.
- In the Properties dialog box, click the
Security tab.
- Under Authorization, click to select the
Enforce component level access checks option and then click
OK.
Modification Type: | Major | Last Reviewed: | 11/6/2003 |
---|
Keywords: | kbprb KB810153 kbAudDeveloper |
---|
|