PRB: Server Object Error 'ASP 0177:80040154' Server.CreateObject (175804)
The information in this article applies to:
- Microsoft Visual InterDev 1.0
- Microsoft Visual InterDev 6.0
- Microsoft Active Server Pages
This article was previously published under Q175804 SYMPTOMS When attempting to run an Active Server Pages (ASP) page
that uses Server.CreateObject to instantiate an ActiveX component the following
error message appears: Server object error 'ASP
0177:80040154' Server.CreateObject Failed
/<path>/<yourasp.asp><line #>
The call to
Server.CreateObject failed. The request object instance Cannot be created.
CAUSE Here are some of the typical causes of this error: - Your control is not registered correctly.
- The "Logged On User" -- usually the anonymous account --
does not have adequate permissions to run the control. In many cases the
anonymous login account (IUSR_<machine>) does not have appropriate
permissions on certain Directories/Files or the specific component and its
dependencies. While less frequent, if the registry permissions for certain keys
are not set correctly, it causes the control to fail to initialize.
- The "Everyone" group has been removed from having READ
permissions on certain registry keys due to the mistaken notion that Everyone
means ANYONE, when in actuality it simply means all validated users on the
Domain/machine.
- In the case of a file database, such as Access or FoxPro,
the directory containing the database files does not provide sufficient
permissions for the authenticated user.
RESOLUTION Warning: The following assumes a familiarity with Internet
Information Server and editing the registry. It is always advised that you back
up the Registry prior to making any changes. Since this error is
associated with incorrect permission settings on files or registry settings,
you must complete the following steps: - Find out who is the Authenticated User. To determine what
user is being authenticated, add the following code to the top of your ASP
page:
<%
Response.Write("LOGON_USER: " & _
Request.ServerVariables("LOGON_USER"))
%> If the LOGON_USER is blank, you are being authenticated as
IUSR_machine. Otherwise, the LOGON_USER displays the <domain\user> name
of the authenticated user who is attempting to create the object. - Confirm that the Authenticated User (or Group) has
permission on the necessary directories, files, and registry keys. This
requires knowledge of the directories, files, and registry keys specific to the
control. Below is a list of the requirements for ActiveX Data Objects.
Directory/File Permissions for ADO Specific Case
\InetPub - IUSR_<machine> READ
\InetPub\wwwroot - IUSR_<machine> READ
\Program Files\Common Files\System\ADO - IUSR_<machine> READ
\Program Files\Common Files\System\OLE DB - IUSR_<machine> READ
\Program Files\Common Files\ODBC\Data Sources -IUSR_<machine> READ
\WinNT - IUSR_<machine> CHANGE
\WinNT\System32 - IUSR_<machine> READ
\WinNT\System32\Inetsrv\Asp - IUSR_<machine> READ
\WinNT\System32\Inetsrv\Asp\Cmpnts - IUSR_<machine> READ
\WinNT\Temp - IUSR_<machine> CHANGE Registry Permissions for ADO Specific Case Ensure the following permissions are set on the keys listed
below: Permissions:
<machine>\Administrator - Full Control
Creator Owner - Full Control
Everyone - READ
INTERACTIVE - Special Access (Query Value, Set Value, Create
Subkey, Enumerate Subkeys,
Notify, Delete)
SYSTEM - Full Control Keys:
HKEY_CLASSES_ROOT
\LICENCES
\CEDD4F80-B43C-11cf-837C-00AA00573EDE
HKEY_CLASSES_ROOT
\ADODB.Command
\ADODB.Connection
\ADODB.Parameter
\ADODB.Recordset File and Folder Permissions for the Database Case Make sure the database files and the folders containing the
database files provide Read, Write, and Execute permissions for the
authenticated user or group. STATUS This behavior is by design. REFERENCES For additional information, please see the following
articles in the Microsoft Knowledge Base: 174811 FILE: Authentication and Security for Internet
Developers For the latest Knowledge Base articles and other support
information on Visual InterDev and Active Server Pages, see the following page
on the Microsoft Technical Support site:
Modification Type: | Major | Last Reviewed: | 5/2/2006 |
---|
Keywords: | kberrmsg kbprb KB175804 |
---|
|