Windows Integration Errors

How to Fix COM Error 0x80080005 in Word Automation

Ayan MasoodAyan Masood Oct 21, 2026 870 views

Question details

The user encounters a System.Runtime.InteropServices.COMException (0x80080005) when trying to create a Microsoft.Office.Interop.Word.Application instance.

How to Fix COM Error 0x80080005 When Starting Word Automation
Product
Microsoft Word (Office 2016)
Device & OS
Windows
Scenario
Running server-side Word automation using an IIS application.
Observed behavior
The application throws COM Error 0x80080005 despite having configured IISUSRS and Network Service accounts in the DCOM settings.
Before you start

Ensure you have administrative access to the server or computer running IIS, and that you can open Component Services to modify advanced DCOM configuration settings.

Solution 1Recommended

Review DCOM Launch and Activation Permissions

Re-verify the DCOM configuration for Microsoft Word to ensure the IISUSRS and Network Service accounts have the exact permissions required to launch the application.

Even if IISUSRS and Network Service are added, they must have both Local Launch and Local Activation permissions explicitly granted in the Component Services manager.

1
Open Component Services

Press the Windows key + R, type 'dcomcnfg' in the Run dialog, and press Enter to open the Component Services window.

2
Locate Word Application DCOM Settings

Navigate to Component Services > Computers > My Computer > DCOM Config. Scroll down and locate 'Microsoft Word 97 - 2003 Document' (or the specific Word Application entry).

3
Edit Security Properties

Right-click the Word application entry and select 'Properties'. Go to the 'Security' tab.

4
Grant Launch and Activation Permissions

Under 'Launch and Activation Permissions', select 'Customize' and click 'Edit'. Ensure that IIS_IUSRS and NETWORK SERVICE are added, and check the 'Local Launch' and 'Local Activation' boxes.

Server Restart: After modifying DCOM permissions, it is highly recommended to restart IIS (by typing 'iisreset' in Command Prompt) or reboot the server for the changes to take effect.
Free Microsoft Office alternative

Looking for a Stable Alternative to Microsoft Office?

If complex COM configuration issues, server-side errors, and heavy installations disrupt your workflow, consider switching your desktop document processing to WPS Office. It provides an intuitive, lightweight experience without the heavy dependencies of traditional Office setups.

  1. 1. Visit the Official Website: Go to the WPS Office website to find the latest version.
  2. 2. Download the Installer: Click the 'Free Download' button to get the lightweight installation file.
  3. 3. Install and Open: Run the installer, follow the simple on-screen instructions, and open your existing Office files instantly.
Avoid complex COM dependencies with a streamlined, standalone software architecture.Fully compatible with Microsoft Office formats, including .docx, .xlsx, and .pptx.Lightweight installation package that consumes minimal system resources.Free to download and use with a highly familiar user interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Microsoft not recommend server-side Office automation?

Office applications like Word are designed as interactive client-side applications with a graphical user interface. Running them unattended on a server via IIS can lead to deadlocks, unauthorized dialog prompts, memory leaks, and COM errors such as 0x80080005.

What is the best alternative to using Office Interop for Word documents?

The recommended approach for server-side document generation and manipulation is using the Open XML SDK. It allows you to read and write .docx files directly at the file level without requiring Microsoft Word to be installed or launched on the server.

How do I access Component Services to check DCOM permissions?

Press the Windows key + R to open the Run dialog, type 'dcomcnfg', and press Enter. From there, navigate to Component Services > Computers > My Computer to review your COM Security and DCOM Config settings.