ACEOLEDB.DLL from Microsoft 365 Apps crash with Exception code 0xc0000005

Jmenninkainen 31 Reputation points
2021-12-29T20:18:30.603+00:00

ACEOLEDB.DLL from Microsoft 365 Apps (at least versions 16.0.14228.20248, 16.0.14430.20006, 16.0.14701.20040 in "C:\Program Files\Microsoft Office\root\VFS\ProgramFilesCommonX64\Microsoft Shared\OFFICE16\") appear to cause an application crash which 'Event Viewer' reports as in attached screenshots, Exception code 0xc0000005. This happens about 15 minutes after application is started, even when application right then is idling and not making any database connection.

When using ACEOLEDB.DLL (versions 16.0.5011.1000, 16.0.5044.1000 or 16.0.5164.1000) installed from "Microsoft Access Database Engine 2016 Redistributable" (https://www.microsoft.com/en-us/download/details.aspx?id=54920) to the folder "C:\Program Files\Common Files\microsoft shared\OFFICE16" this trouble doesn't appear.

Practical trouble is that each time Microsoft 365 Apps updates itself, it will activate its own failing version of ACEOLEDB.DLL. This happens rather frequently which make it difficult to handle: https://learn.microsoft.com/en-us/officeupdates/update-history-microsoft365-apps-by-date

161265-image.png

The sample application with source code is at: https://1drv.ms/u/s!Ar61IfhIp1W6hNsNAREEGLEGIGGEdQ?e=QaJg6h

The executable "AceOleDbSample.exe" is in the folder "\x64\Release". It opens 'sample.mdb' when its starts and closes it right away. After that about in 12 minutes it crashes.

The only dependency should be "Microsoft Visual 2019 C++ Redistributable" (https://aka.ms/vs/17/release/vc_redist.x64.exe) and naturally either "Microsoft Access Database Engine 2016 Redistributable" (https://www.microsoft.com/en-us/download/details.aspx?id=54920) or Microsoft 365 Apps.

Code snipped causing the failure highlighted in yellow:
161244-image.png

The sample application running, after 'Restart manager' has re-started it after the crash:
161207-image.png

Microsoft 365 and Office | Access | Other | Other
0 comments No comments

7 answers

Sort by: Newest
  1. Jmenninkainen 31 Reputation points
    2025-12-29T14:47:28.93+00:00

    I have here now "Microsoft 365 Apps"-variant ACEOLEDB.dll version 16.0.19426.20218 (installed Dec 19th, 2025) in the folder C:\Program Files\Microsoft Office\root\vfs\ProgramFilesCommonX64\Microsoft Shared\Office16 and my sample application doesn't crash anymore.

    This got fixed at some point?

    Was this answer helpful?

    0 comments No comments

  2. zxBCN Reiter,Oliver (IT INF) EXTERNAL 0 Reputation points
    2025-12-29T05:44:24.3466667+00:00

    Hi thanks, we have tested all possible workarounds unsuccessfully, even with newer versions. It appears to be a Windows Server 2019 related issue. I have a newer system running Windows Server 2022 at the same time where the problem does not occur. We still had a new case open at Microsoft, but they push the problem back to the application and as already mentioned above do not want to support the older versions, which is understandable somewhere, but also the problem when using Microsoft as an operating system.

    Was this answer helpful?

    0 comments No comments

  3. Sheng Jiang 蒋晟 211 Reputation points
    2025-12-27T18:43:51.0633333+00:00

    Support for the Access Database Engine 2016 Redistributable ended on October 14, 2025. The recommended replacement is the Microsoft 365 Access Runtime. On my machine, the runtime's ACEOLEDB.DLL was signed on Dec 15, 2025. You might want to try out that version.

    A static global connection fix might mean the connection pool does something unexpected when shutting down. You can try disable OLE DB Resource Pooling with OLE DB Services = 0; (at a cost of speed and resource usage) in your connection strings to see if it makes a difference.

    Was this answer helpful?

    0 comments No comments

  4. Bart Geuens 5 Reputation points
    2025-03-28T10:24:31.5733333+00:00

    No, unfortunately not: Microsoft is no longer going to correct these old drivers. I manually do a check on the contents of those registry keys and when they were changed by Windows, I put them back the way it works:

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{3BE786A0-0366-4F5C-9434-25CF162E475E}\InprocServer32]

    @="C:\Program Files\Common Files\Microsoft Shared\OFFICE16\ACEOLEDB.DLL"

    "ThreadingModel"="Both"

    Hope this is of some use to you....

    Was this answer helpful?

    1 person found this answer helpful.

  5. zxBCN Reiter,Oliver (IT INF) EXTERNAL 0 Reputation points
    2025-03-28T10:05:00.0933333+00:00

    has the problem solved with you? we also have an ACEOLEDB.DLL crash with Exception code 0xc0000005 with an APP with OfficePro2021LTSR current version. Microsoft is unable to analyze the problem, even though the problem has been recurring for years, either MS is incapable or ignorant?! and unfortunately you can forget about the support for some years, you have the feeling that the problems are trying to solve by "Google" or predetermined standard answers and have no idea what we are talking about. It has nothing to do with Access installation either, we have Office WITHOUT Access installed, the faulty DLL is located in an office shared folder and is always installed with it.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.