Microsoft Knowledge Base Email Alertz

BUG: When you submit a request to an ASP page that calls a COM component in Internet IIS 6.0, you may receive an error message

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 922422 - Last Review: December 3, 2007 - Revision: 1.2

BUG: When you submit a request to an ASP page that calls a COM component in Internet IIS 6.0, you may receive an error message

SYMPTOMS

When you submit a request to an Active Server Pages (ASP) page that calls a Component Object Model (COM) component in Microsoft Internet Information Services 6.0, you may receive one of the following error messages:
Error message 1
E06d7363
Error message 2
'800af10a' insufficient memory to perform operation
Error message 3
Automation error
The object invoked has disconnected from its clients.
This problem occurs when the COM component tries to create a window or set a window hook. The underlying call to the SetWindowsHookEx function fails.

You may also receive the following error message:
E_ACCESSDENIED (error 5)
This problem may occur even though the ASP Web application works correctly in IIS 5.0.

CAUSE

This problem occurs because IIS 6.0 does not enable a COM component to create a window or to set a window hook. This is a feature of IIS 6.0 that is designed to help you increase the level of security.

RESOLUTION

To resolve this problem, change the code in the application to avoid calling the SetWindowsHookEx function to create a window or to set a window hook. For example, do not use an OCX component that is designed to work in an interactive environment that uses a host window. Use non-interactive COM components instead. Microsoft Foundation Class (MFC)-based controls and libraries frequently use windows and windows hooks.

WORKAROUND

Important These steps may increase your security risk. These steps may also make your computer or your network more vulnerable to attack by malicious users or by malicious software such as viruses. We recommend the process that this article describes to enable programs to operate as they are designed to, or to implement specific program capabilities. Before you make these changes, we recommend that you evaluate the risks that are associated with implementing this process in your particular environment. If you choose to implement this process, take any appropriate additional steps to help protect your system. We recommend that you use this process only if you really require this process.

To work around this problem, run IIS 6.0 in IIS 5.0 isolation mode. To do this, follow these steps:
  1. Click Start, click Run, type inetmgr, and then click OK.
  2. Expand Computer Name, right-click Web Sites, and then click Properties.

    Note Computer Name is a placeholder for the name of your computer.
  3. Click the Service tab.
  4. Click to select Run WWW Service in IIS 5.0 isolation mode check box, and then click OK.
Note IIS 5.0 isolation mode is only supported by Microsoft Windows Server 2003.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

APPLIES TO
  • Microsoft Internet Information Services 6.0
  • Microsoft Visual C++ 6.1
Keywords: 
kberrmsg kbtshoot kbbug kbexpertiseinter KB922422
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate