PRB: Instantiating Object in .exe Starts Another .exe Instance (195957)
The information in this article applies to:
- Microsoft Active Server Pages
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Internet Information Server 3.0
- Microsoft Internet Information Server 4.0
- Microsoft Internet Information Server 5.0
This article was previously published under Q195957 SYMPTOMS
When you instantiate a COM component in an out-of-process server (.exe)
from Active Server Pages (ASP), another instance of the .exe starts.
CAUSE
The default Identity of a COM component in an .exe is the Launching User.
The implication of this is that when the Active Server Pages page tries to
create an instance of this object, it is doing so in the security context
of the anonymous user (IUSR_<machine name>). If this is a different user
from the user that started the instance of the .exe that is currently
running, another instance of the .exe starts.
RESOLUTIONStep-by-Step Procedures- From the Start menu, click Run, and enter the following in the Open text
box:
- In the Distributed COM Configuration Properties dialog box, click the
Applications tab.
- Select the object from the list and double-click on it.
- In the Properties dialog box that appears, click the Identity tab.
Note that the default setting is the Launching User.
- Change this setting to a specific Windows NT user account of your choice
by selecting This User and entering the user name and password.
- Click OK, and then click OK again.
- Run the Active Server Pages page.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 3/16/2005 |
---|
Keywords: | kbCodeSnippet kbInetDev kbprb KB195957 |
---|
|