Error Message: Microsoft OLE DB Provider for ODBC Drivers Error '80004005'

ID: Q238971


The information in this article applies to:
  • Microsoft Internet Information Server version 4.0

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.

SYMPTOMS

When you use an Internet Information Server (IIS) ASP page to access a database, the connection may fail with the following error message:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified


CAUSE

If you have used the C2 security program from the Windows NT Resource Kit on your system, the following registry key may only have read permissions assigned to the Everyone group:

Hkey_Local_Machine\Software\ODBC
In order for the ODBC drivers to function properly, the Web user accounts must have full control of this registry key.


RESOLUTION

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).
To assign full-control permissions to the Everyone group, follow these steps:

  1. Start Registry Editor (Regedt32.exe).


  2. Locate the following key in the registry:
    Hkey_Local_Machine\Software\ODBC


  3. On the Security menu, select Permissions.


  4. Select Replace Permission on Existing Subkeys and set the permissions for the Everyone group to full control.


  5. Quit Registry Editor.



MORE INFORMATION

For additional information on the C2 security update utility, consult the Windows NT Resource Kit, or see the following articles in the Microsoft Knowledge Base:

Q185874 How to Troubleshoot Permissions in IIS 4.0
Q137018 Availability of C2 Security Compliant Windows NT
Q93362 C2 Evaluation and Certification for Windows NT

Additional query words: C2 Security Permissions Registry

Keywords : prodNT4OP
Version : winnt:4.0
Platform : winnt
Issue type : kbprb


Last Reviewed: November 17, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.