Share via

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: Most helpful
  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

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.