Fix Error 800700C1 When Creating an Excel Interop Application in C#
Question details
Resolve error 800700C1 when a C# application creates an Excel Interop application instance.

- Product
- Microsoft Excel Interop
- Device & OS
- Windows
- Scenario
- A C# application instantiates Microsoft.Office.Interop.Excel.Application.
- Observed behavior
- Creating the Excel application instance fails with error 800700C1, potentially after a Windows update despite unchanged code.
Confirm that Excel opens normally on the affected computer and note the full exception message. In Excel, select File > Account > About Excel to check the Office version and whether it is 32-bit or 64-bit.
Check the C# platform target and Office installation
Use these checks to identify architecture conflicts and repair a damaged Office installation.
Error 800700C1 can indicate an invalid executable or a problem loading a component. Excel is an out-of-process COM server, so different application and Office bitness does not always cause a failure; native dependencies and registration should also be checked.
In Visual Studio, right-click the project, select Properties > Build, and check Platform target. Compare x86 or x64 with the Office architecture, and try the matching target if an in-process native dependency requires it.
In Visual Studio, inspect the project's references and any native DLLs loaded during startup. Make sure each in-process native DLL supports the application's selected platform target.
Open Windows Settings > Apps > Installed apps, find Microsoft 365 or Office, and select Modify. Run Quick Repair; if the error persists, return to Modify and try Online Repair.
Open Excel from the Start menu, then rebuild and run the C# application from Visual Studio. Record the full exception and any inner exception if creation still fails.

Inspect Excel COM registration and Windows logs
Use this method if the platform and repair checks do not resolve the error.
Work with Excel Files in WPS Spreadsheet
WPS Office is a free, lightweight Office alternative with a familiar interface and support for common Microsoft Office formats, making it easy to move everyday spreadsheet work. It does not repair Excel COM registration or guarantee compatibility with Excel Interop automation.

Frequently Asked Questions
What does error 800700C1 mean when Excel Interop starts?
The error can indicate an invalid executable or a component-loading problem. Check the full exception, native dependencies, Office installation, and Excel COM registration to identify the cause.
How do I find out whether Office is 32-bit or 64-bit?
Open Excel and select File > Account > About Excel. The About window shows the Office version and architecture.
Must a C# application always match Excel's bitness?
Not necessarily. Excel runs as an out-of-process COM server, but any in-process native DLLs used by the application must be compatible with its platform target. Check the target in Visual Studio under project Properties > Build.
How can I repair Excel's COM registration?
In Windows Settings > Apps > Installed apps, select Microsoft 365 or Office and choose Modify. Try Quick Repair first, then Online Repair if needed.
Can WPS Office fix an Excel Interop COM error?
No. WPS Office can open and edit common Excel file formats, but it does not repair Microsoft Excel's COM registration or guarantee compatibility with Excel Interop automation.




