A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
0xc0000005 indicates an access violation. In crash analysis guidance, this means a component of the application tried to perform an invalid memory access. When the faulting module is a common Windows module such as ntdll.dll, that module can be the victim rather than the true root cause.
For this case, the supported next step is to capture and analyze a full Excel process dump on the production server.
- Verify prerequisites first:
- Confirm Windows Server 2022 is fully updated.
- Confirm the impacted Excel build is up to date.
- If antivirus is installed, confirm it is current and that required exclusions are in place.
- Use Event Viewer correctly:
- Event ID 1000 is the actual application crash event.
- Event ID 1001 shows Windows Error Reporting information.
- The
ntdll.dllfault does not by itself proventdll.dllis the root cause.
- Configure Windows Error Reporting to collect full dumps for
EXCEL.EXE.- Run the WER dump-collection setup from an elevated command prompt on the production server.
- Configure it for the crashing executable name
EXCEL.EXE. - Monitor the dump folder for created dumps after reproducing the crash.
- Enable page heap for
EXCEL.EXEwith GFlags.- This is specifically recommended to trace corruption.
- Command:
Gflags.exe /i EXCEL.EXE +hpa - Restart the Excel process path so the setting takes effect.
- Warning: page heap adds overhead and should be used only for troubleshooting.
- Reproduce the report generation from the ASP.NET/IIS application.
- Since the crash appears around
Application.Quit()and cleanup, the dump captured at crash time is the key artifact. - If dumps are created, analyze them with
windbg.exeand!analyze, or provide them to the product owner for analysis.
- Since the crash appears around
- Interpret the dump based on the exception:
-
0xc0000005: look for the failing call stack and identify application code or add-in/module involvement. - If repeated functions appear, correlate them with the report-generation and cleanup path.
-
- If the crashing code path uses multiple Excel instances or parallel copy/paste automation, reduce that immediately.
- A documented Excel known issue states that when an add-in or automation component performs clipboard-based copy/paste in parallel Excel instances, Excel can error or crash.
- Workarounds:
- Use APIs that do not interact with the clipboard, such as getting and setting values by array where possible.
- Avoid running clipboard-based tasks in multiple Excel instances or processes in parallel.
- If the server recently migrated Office from 32-bit to 64-bit and the automation client is 32-bit, check for orphaned Office TypeLib registry entries.
- Documented symptoms include COM and .NET errors after Office architecture migration.
- The supported remediation is the Office TypeLib remediation script, or manual review of orphaned
WOW6432Node\TypeLibentries that still point to missingProgram Files (x86)Office executables. - Warning: manual registry deletion is risky and should be backed up and validated before changes.
- After data collection, remove the troubleshooting settings:
- Delete the WER registry key created for the process.
- Disable page heap:
Gflags.exe /i EXCEL.EXE -hpa
Supported root-cause position from the available guidance:
- The crash is consistent with an access violation, not enough to attribute directly to Excel,
ntdll.dll, Windows Server 2022, or a specific Microsoft 365 Apps build from the event alone. -
ntdll.dllas the faulting module can be incidental. - The decisive evidence must come from the Excel crash dump and failing call stack.
- The most relevant documented areas to validate in this scenario are memory corruption during shutdown/cleanup, parallel clipboard-based Excel automation, and orphaned COM registration after Office architecture migration.
References: