PRB: Server Object Error 'ASP 0177:80040154' Server.CreateObjectLast reviewed: December 19, 1997Article ID: Q175804 |
The information in this article applies to:
SYMPTOMSWhen 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. CAUSEHere are some of the typical causes of this error:
RESOLUTIONWarning: 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:
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 CaseEnsure 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 ControlKeys:
HKEY_CLASSES_ROOT \LICENCES \CEDD4F80-B43C-11cf-837C-00AA00573EDE HKEY_LOCAL_MACHINE \Software \Classes \ODBC HKEY_CLASSES_ROOT \ADODB.Command \ADODB.Connection \ADODB.Parameter \ADODB.Recoredset \ADODB.FileDSN File and Folder Permissions for the Database CaseMake sure the database files and the folders containing the database files provide Read, Write, and Execute permissions for the authenticated user or group.
STATUSThis behavior is by design.
MORE INFORMATION
General Trouble Shooting Steps
Quick Permissions Check Steps
Not So Quick Permissions Check Steps
To enable auditing, open User Manager and select "Audit" from the Policies" menu. Select the "File and Object Access" failure. Open "Windows NT Explorer" and select the root of your hard drive. Right-click and select "properties." Select the Security tab and press the Auditing button. Add the user of interest (the one returned by the ASP page or IUSR_machine) and select all the failure check boxes. Make sure you apply these settings to all folders. Use the "Event Viewer" to see any access failures (select "Security" from the Log menu). Make sure you turn auditing off when you are finished making changes. NOTE 2: Jet uses the SYSTEM TEMP and TMP environment variables to specify the location of temporary files that are created during JET operations. By default these environment variables are defined for users and are not system-wide settings. To set these up you can do one of two operations. Option 1. In the autoexec.bat add something similar to the following two lines:
Set TEMP=C:\Temp Set TMP =C:\TempOption 2. Right-click My Computer:
NOTE 3: By default ASP creates single-threaded apartment clients, which means that only single-threaded apartment inproc servers are given the desired security context passed on by IIS. All other threading models are run in the SYSTEM context. This means, a DLL using the Single Threading Model will start up in the Security Context of SYSTEM, and not as intended as the Authenticated User.
REFERENCESFor additional information, please see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q172925 TITLE : INFO: Security Issues with Objects in ASP and ISAPI Extensions ARTICLE-ID: Q174811 TITLE : FILE: Authentication and Security for Internet DevelopersFor 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:
http://support.microsoft.com/support/vinterdev/ Keywords : VIADO VIMisc kberrmsg Technology : kbInetDev Version : WINDOWS:1.0 Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |