Adodb connection ошибка 800a0e7a

So I am going back to a project I created in College, so I can transfer it to PHP. I orginally coded it in ASP Classic.

I am on Windows 8 and running Access 2013.

I am currently getting the following error

ADODB.Connection error ‘800a0e7a’
Provider cannot be found. It may not be properly installed.
/PROJECT!Better/verifyuser.asp, line 11

and this is my connection string code.

Dim vPath, pPath, Conn

vPath = ".dbComic.accdb"
pPath = Server.MapPath( vPath )

objConn = "PROVIDER=Microsoft.ACE.OLEDB.12.0;DATA SOURCE=" & pPath & ";"
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open objConn

any help that you can provide would be awesome!

edit: I already have the enable 32-bit applications in IIS Activated

  • Remove From My Forums
  • Question

  • I’m coding a ruby script that has to write data in an existing Access Database. With following code I don’t manage to make a connection with the database: 

    require 'win32ole'
    connection = WIN32OLE.new('ADODB.Connection')
    connection.Open('Provider=Microsoft.ACE.OLEDB.12.0;Data Source=d:ex1_student.mdb')

    Error: 800A0E7A — «Provider cannot be found. It may not be properly installed.» 

    Access 2010 32-bit and Windows 10 64-bit OS. I did find questions with the same error, but the solutions doesn’t seem to apply for me.

    • Edited by

      Tuesday, September 1, 2015 12:25 PM

System Requirements:

  • Windows NT 4.0
  • Windows 2000
  • Windows XP (x86)
  • Windows Server 2003 (x86)
  • Windows Server 2008 (x86)
  • Windows 7 (x86)
  • Windows Server 2003 (x64)
  • Windows Vista (x64)
  • Windows 7 (x64)
  • Windows Server 2008 (x64)
  • Windows Server 2008 R2 (x64)
  • Windows Server 2012 (x64)

The Problem:

When you attempt to connect to a Microsoft Access database using the ODBC provider Microsoft.Jet.OLEDB.4.0 you receive the error message:

ADODB.Connection error ‘800a0e7a’
Provider cannot be found. It may not be properly installed./path/file.asp, line ##

More Information:

For x64 Systems:

The Microsoft.Jet.OLEDB.4.0 is only available as a 32-bit (x86) module. In order to use it via IIS you must change the web site to run in a 32-bit application pool.

Under IIS 7.0, 7.5 or 8.0:

  • Assuming that you will not want to use ASP .net, in the IIS console in the Application Pools section, create a no managed code, integrated application pool. If you do want to maintain access to ASP .net, select the framework version you require.
  • Once created, in its advanced settings set “Enable 32-bit Applications” to true
  • In the Basic Settings… for the web site entry you are experiencing the error on, change the Application Pool to the newly created 32-bit pool.
  • Restart the web site

In most cases where the system is running under an x64 architecture, this should fix the problem.

For x86 and x64 Systems:

We had a server down for an entire day because of this one. It was either an attempt to fix a security database fault, or an update from Microsoft Update delivered in the April 2008 patch cycle, but after the reboot for the patches, none of the JET (Access) databases on the particular server, in any IIS web would operate.

I will simply cut to the fix for you in the beginning, to expedite your likely finding of a resolution to this problem. Something had caused the service provider for the Microsoft.Jet.OLEDB.4.0 provider to become unregistered. To fix the problem issue the following command from a Command Prompt or Run:

regsvr32.exe msjetoledb40.dll

You shouldn’t need to reboot to solve the problem, it didn’t in my case. However, if nothing happens do restart before progressing to the next step.

Additional Steps: Step 1

Reregister the components from MDAC, JET and ADO in their entirety. Simply copy the below into a BAT file and run it.

:: ADODB.Connection error '800a0e7a'

:: Provider cannot be found. It may not be properly installed.regsvr32.exe cfgmgr32.dll -s

regsvr32.exe cliconfg.dll -s

regsvr32.exe dasetupr.dll -s

regsvr32.exe dbmsgnet.dll -s

regsvr32.exe dbmsrpcn.dll -s

regsvr32.exe dbnetlib.dll -s

regsvr32.exe dbnmpntw.dll -s

regsvr32.exe expsrv.dll -s

regsvr32.exe msadce.dll -s

regsvr32.exe msadcer.dll -s

regsvr32.exe msadcf.dll -s

regsvr32.exe msadcfr.dll -s

regsvr32.exe msadco.dll -s

regsvr32.exe msadcor.dll -s

regsvr32.exe msadcs.dll -s

regsvr32.exe msadds.dll -s

regsvr32.exe msaddsr.dll -s

regsvr32.exe msader15.dll -s

regsvr32.exe msado15.dll -s

regsvr32.exe msadomd.dll -s

regsvr32.exe msador15.dll -s

regsvr32.exe msADOX.dll -s

regsvr32.exe msadrh15.dll -s

regsvr32.exe mscpxl32.dll -s

regsvr32.exe msdadc.dll -s

regsvr32.exe msdadiag.dll -s

regsvr32.exe msdaenum.dll -s

regsvr32.exe msdaer.dll -s

regsvr32.exe msdaora.dll -s

regsvr32.exe msdaorar.dll -s

regsvr32.exe MSDAOSP.dll -s

regsvr32.exe msdaprsr.dll -s

regsvr32.exe msdaprst.dll -s

regsvr32.exe msdaps.dll -s

regsvr32.exe msdarem.dll -s

regsvr32.exe msdaremr.dll -s

regsvr32.exe msdart.dll -s

regsvr32.exe msdasc.dll -s

regsvr32.exe msdasql.dll -s

regsvr32.exe msdasqlr.dll -s

regsvr32.exe msdatl3.dll -s

regsvr32.exe msdatt.dll -s

regsvr32.exe msdaurl.dll -s

regsvr32.exe msdfmap.dll -s

regsvr32.exe msjro.dll -s

regsvr32.exe msjtes40.dll -s

regsvr32.exe msorc32r.dll -s

regsvr32.exe msorcl32.dll -s

regsvr32.exe msvcirt.dll -s

regsvr32.exe msvcrt.dll -s

regsvr32.exe mswdat10.dll -s

regsvr32.exe mswstr10.dll -s

regsvr32.exe msxactps.dll -s

regsvr32.exe msxml3.dll -s

regsvr32.exe msxml3a.dll -s

regsvr32.exe msxml3r.dll -s

regsvr32.exe mtxdm.dll -s

regsvr32.exe mtxoci.dll -s

regsvr32.exe odbc16gt.dll -s

regsvr32.exe ODBC32.dll -s

regsvr32.exe ODBC32GT.dll -s

regsvr32.exe odbcbcp.dll -s

regsvr32.exe odbcconf.dll -s

regsvr32.exe ODBCCP32.dll -s

regsvr32.exe ODBCCR32.dll -s

regsvr32.exe ODBCCU32.dll -s

regsvr32.exe ODBCINT.dll -s

regsvr32.exe ODBCTRAC.dll -s

regsvr32.exe oledb32.dll -s

regsvr32.exe oledb32a.dll -s

regsvr32.exe oledb32r.dll -s

regsvr32.exe setupapi.dll -s

regsvr32.exe sqloledb.dll -s

regsvr32.exe sqlsrv32.dll -s

regsvr32.exe sqlunirl.dll -s

regsvr32.exe sqlxmlx.dll -s

regsvr32.exe vbajet32.dll -s:: OLEdB

regsvr32.exe %SystemRoot%System32msjetoledb40.dll:: Jet

regsvr32.exe %SystemDrive%Program FilesCommon FilesMicrosoft SharedDAOdao360.dll -s

regsvr32.exe %SystemRoot%System32expsrv.dll -s

regsvr32.exe %SystemRoot%System32msexch40.dll -s

regsvr32.exe %SystemRoot%System32msexcl40.dll -s

regsvr32.exe %SystemRoot%System32jet500.dll -s

regsvr32.exe %SystemRoot%System32msjet35.dll -s

regsvr32.exe %SystemRoot%System32msjet40.dll -s

regsvr32.exe %SystemRoot%System32msjetol1.dll -s

regsvr32.exe %SystemRoot%System32msjint40.dll -s

regsvr32.exe %SystemRoot%System32msjter40.dll -s

regsvr32.exe %SystemRoot%System32msjtes40.dll -s

regsvr32.exe %SystemRoot%System32msltus40.dll -s

regsvr32.exe %SystemRoot%System32mspbde40.dll -s

regsvr32.exe %SystemRoot%System32msrd2x40.dll -s

regsvr32.exe %SystemRoot%System32msrd3x40.dll -s

regsvr32.exe %SystemRoot%System32msrepl40.dll -s

regsvr32.exe %SystemRoot%System32mstext40.dll -s

regsvr32.exe %SystemRoot%System32mswdat10.dll -s

regsvr32.exe %SystemRoot%System32mswstr10.dll -s

regsvr32.exe %SystemRoot%System32msxbde40.dll -s

regsvr32.exe %SystemRoot%System32spmsg.dll -s

regsvr32.exe %SystemRoot%System32vbajet32.dll -s

:: ADO
regsvr32.exe %SystemDrive%Program FilesCommon FilesSystemadomsader15.dll -s
regsvr32.exe %SystemDrive%Program FilesCommon FilesSystemadomsado15.dll -s
regsvr32.exe %SystemDrive%Program FilesCommon FilesSystemadomsadomd.dll -s
regsvr32.exe %SystemDrive%Program FilesCommon FilesSystemadomsador15.dll -s
regsvr32.exe %SystemDrive%Program FilesCommon FilesSystemadomsadox.dll -s
regsvr32.exe %SystemDrive%Program FilesCommon FilesSystemadomsadrh15.dll -s
regsvr32.exe %SystemDrive%Program FilesCommon FilesSystemadomsjro.dll -s

Additional Steps: Step 2

Reinstall MDAC 2.8 SP1 (Windows XP SP1 or below only). You will need to perform some registry modifications before you can reinstall MDAC as it is a protected system module.

  1. Open Regedit
  2. Navigate to:
    HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionSetupExceptionComponents
  3. Look through each class ID for the following friendly name values. Delete the Class ID containing the matching friendly names:
    Microsoft MDAC Response Files
    Microsoft MDAC Setup Files
    Microsoft SQL Server ODBC Drivers
    Microsoft SQL Server Net Libs
    Microsoft SQL Server OLEDB Provider
    WebData Setup Exception Package
    Mdac 2.8 Exception Package
  4. Download and reinstall MDAC 2.8 SP1 from Microsoft which should reinstall in full.


  • Remove From My Forums
  • Question

  • I need to fetch data from a database and I’m having a hard time with the command.

    At the moment, I cannot get the connection to database working. Any help is appropriated.

    Below is what I tried but its not yet working

    Set AdCn = CreateObject("ADODB.Connection")
    Set AdRec = CreateObject("ADODB.Recordset")
    
    connstr="Provider=SQLOLEDB.1;Data Source="localhost";Initial Catalog="test";user id = '"postgres"';password='"pass"'"
    

Answers

  • thanks. though, I still have that same error message.

    error code: 800A0E7A.
    error: Provider cannot be found. It may not be properly installed.
    source: ADODB.Connection

    If this is the error then the potgress OLEDB client driver is not insyalled. Ask you DBA for the installation media.  It is probably parked on a share somewhere.


    jv

    • Proposed as answer by

      Friday, September 16, 2011 12:54 AM

    • Marked as answer by
      IamMred
      Tuesday, September 20, 2011 3:32 AM

This is often caused by attempting to connect to an Access database
using OLE-DB (e.g. Provider=Microsoft.Jet.OLEDB.3.51;) without having JET
components installed.

Microsoft.Jet.OLEDB.3.51 is a very old version, and we have Microsoft.Jet.OLEDB.4.0 installed on our servers, in order to fix the error, please update

Provider=Microsoft.Jet.OLEDB.3.51  to Provider=Microsoft.Jet.OLEDB.4.0 from your database connection string.

Article ID: 1441, Created: May 26, 2013 at 11:41 PM, Modified: May 26, 2013 at 11:41 PM

Понравилась статья? Поделить с друзьями:

Не пропустите эти материалы по теме:

  • Яндекс еда ошибка привязки карты
  • Adobe код ошибки 206
  • Adobe код ошибки 113
  • Adobe reader произошла ошибка при отправке сообщения
  • Adobe reader произошла внутренняя ошибка

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии