Error C0042116 "Problem Installing CAB x.CAB" (264992)
The information in this article applies to:
- Microsoft Internet Information Server 4.0
- Microsoft Internet Information Services 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q264992 SYMPTOMS
When you use the Package and Deployment Wizard (PDW) to deploy an Internet
Information Server (IIS) application to a Web server, you receive the
following error message:
Unexpected error number C0042116 has occurred: The Web server returned the following error: There was a problem installing CAB x.CAB. Please check it and the INF x.INF for validity.
CAUSE
This error occurs because the Scripts virtual directory is configured to run under Microsoft Transaction Server and Microsoft Component Object Model (MTS/COM+), and the Identity of the MTS/COM+ package does not have sufficient rights to install the CAB file.
RESOLUTIONNote The Scripts virtual directory is frequently removed from IIS installations for security concerns. Allowing the Scripts virtual directory to run in-process or under an account that has administrative rights increases the security issues that are related to the Scripts virtual directory. Use of the Scripts virtual directory should be limited. Additionally, you should remove the Scripts virtual directory during periods of time in which its use or its existence is not required.
Internet Information Server 4.0
To resolve this problem in IIS 4.0, set the Scripts virtual directory to run in-process as follows:
- Start the Internet Service Manager. To do this, click Start, select Program Files, and then select Windows NT 4.0 Option Pack. Select Microsoft Internet Information Server, and then select Internet Service Manager.
- Expand the Internet Information Server node in the left pane to reveal the available computers.
- Expand the computer name in the left pane to reveal the available Web sites.
- Expand the Web site to which you are attempting to deploy your application. This reveals the available virtual directories.
- Right-click the Scripts virtual directory, and select Properties.
- On the virtual directory, clear the Run in separate memory space check box.
Internet Information Services 5.0
To resolve this problem in IIS 5.0, set the Application Protection in the Scripts virtual directory as follows:
- On a Windows-2000 based computer, click Start, and then select Programs. Point to Administrative Tools, and then click Internet Services Manager.
- Expand the computer name in the left pane to reveal the available Web sites.
- Expand the Web site to which you are attempting to deploy your application. This reveals the available virtual directories.
- Right-click the Scripts virtual directory, and select Properties.
- In the Scripts virtual directory, set the Application Protection to either Low(IIS Process) or High(Isolated).
NOTE: If you set the Application Protection to run as a High (Isolated) process, you should configure the Identity of the COM+ package to run under an account that has Administrative rights.
MORE INFORMATION
Because the Posting Acceptor (Cpshost.dll) calls the RevertToSelf API before it calls the Rinstall.exe application, the rinstall.exe application runs under the context of the process token rather than the thread token. Unless the process token is configured specifically for the Package and Deployment Wizard, in most cases, it will be in the IWAM_computername account. The IWAM_computername account does not have sufficient rights to install the CAB file.
REFERENCES
For more information about the Package and Deployment Wizard, click the following article number to view the article in the Microsoft Knowledge Base:
242767
Deploying WebClasses with the Package and Deployment Wizard (PDW)
Modification Type: | Major | Last Reviewed: | 6/27/2006 |
---|
Keywords: | kbDeployment kberrmsg kbprb kbWebClasses KB264992 |
---|
|