Microsoft KB Archive/281434

= How to Isolate a DLL Into a Separate Process By Using Microsoft Transaction Server (MTS) =

Article ID: 281434

Article Last Modified on 6/23/2005

-

APPLIES TO


 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q281434



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



SUMMARY
When you troubleshoot with Internet Information Server (IIS), it is a common practice to isolate Web applications by running them in a separate memory space, which is referred to as Out-of-Process (OOP). However, if a component is used on multiple ASP pages, and in multiple Web applications, it can be difficult to isolate the module (DLL) that contains the object from the rest of the Web site. Then you must isolate a COM DLL into a separate process to determine if it contributes to problems that affect Web server performance. Microsoft Transaction Server (MTS) 2.0, in the Microsoft Windows NT 4.0 Option Pack (NTOP), provides the ability to isolate a COM DLL into a separate process.



MORE INFORMATION
The steps that follow provide a procedure that you can use to isolate a DLL. After you isolate the DLL, any processes that use the isolated DLL make RPC calls to the Mtx.exe process that contains the isolated DLL, rather than loading the DLL within its own process space.

How to Isolate a COM DLL in Microsoft Windows NT 4.0
 On the Taskbar, click Start, point to Programs, point to Windows NT Option Pack, point to Microsoft Internet Information Server, and then click Internet Service Manager. Expand the Microsoft Transaction Server folder, expand Computers, expand My Computer, and then select the Packages Installed folder. Create a new Package. Right-click the Packages Installed, and then select New | Package. Click Create an empty package. Assign a Name to the package (that is, the same name as the COM DLL). Do not use any periods in the name. Click Next.</li> Set the Security Context required by the DLL by: <ul> Selecting either the Interactive (Logged on) user.

-or-

</li> Specify the credentials to impersonate This user.</li></ul>

</li> Click Next.</li> Click Finish.</li> Expand the new Package, right-click the Components folder, and then add the DLL to the new Package.</li> Click New | Component.</li> Click Install new component(s).</li> Click Add files....</li> Browse to the folder that contains the DLL to isolate.</li> Select the DLL to isolate.</li> Click Open.NOTE: The isolated DLL must be a COM DLL. Otherwise, this error message occurs:

&quot;One or more files do not contain components or type libraries. These files can not be installed&quot;

</li> Click Finish.</li> Reset the IISADMIN service to ensure that the DLL was not in use by the InetInfo.exe process. To do this, from a command prompt type: net stop iisadmin /y

net start w3svc </li></ol>

After the isolated DLL is invoked you should see your new component spinning.