Microsoft KB Archive/201740

= Cannot Create Object Error when Browsing ASP Pages =

Article ID: 201740

Article Last Modified on 6/22/2005

-

APPLIES TO


 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q201740



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



SYMPTOMS
When an Active Server Pages (ASP) application runs, you may receive the following error(s).

Application Event Log Error:

Failed on creation from object context: CoCreateInstance (ProgId: ADODB.Connection.1.5) (CLSID: {00000514-0000-0010-8000-00AA006D2EA4}) (Microsoft Transaction Server Internals Information: File: d:\viper\src\runtime\context\ccontext.cpp, Line: 1292)

Browser error:

Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object /test.asp, line 1

The line in the Active Server Pages file reads as follows:

<% set db = Server.CreateObject("ADODB.Connection") %>



CAUSE
This problem is related to the permissions granted to your DLLs. The IUSR_computer and IWAM_computer account (where computer is the name of the machine) do not have the permissions necessary to execute the DLLs being instantiated on the "Server.CreateObject" line in the ASP code.



RESOLUTION
The IUSR_computer and IWAM_computer account must be granted read permissions to the :\Program Files\Common Files\System\ADO directory.

Keywords: kbdatabase kbprb kbpending KB201740

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.