Windows Integration Errors

How to Fix DCOM Error 80070005 in .NET Office Applications

Emma BrownEmma Brown Oct 9, 2026 868 views

Question details

Users need to resolve a DCOM access denied error when automating Word or Excel on a server environment.

How to Fix DCOM Error 80070005 in .NET Office Applications
Product
.NET Office Automation
Device & OS
Windows Server
Scenario
Automating Microsoft Word or Excel server-side via .NET applications and IIS.
Observed behavior
The application throws DCOM Error 80070005, indicating that access is denied due to application isolation, missing permissions, or server-side resource conflicts.
Before you start

Ensure you have administrative privileges on the Windows Server to modify Component Services and DCOM configuration settings.

Solution 1Recommended

Adjust DCOM Permissions in Component Services

Grant the necessary launch and activation permissions to the application pool identity in the DCOM configuration.

This error typically occurs because the IIS Application Pool identity lacks the necessary permissions to launch and activate COM components like Word or Excel.

1
Open Component Services

Press Win + R, type 'dcomcnfg', and press Enter to open the Component Services window.

2
Locate the Office Application

Navigate to Component Services > Computers > My Computer > DCOM Config. Scroll down to find 'Microsoft Excel Application' or 'Microsoft Word Document'.

3
Open Properties

Right-click the specific Office application and select 'Properties'.

4
Modify Security Settings

Go to the 'Security' tab. Under 'Launch and Activation Permissions', select 'Customize' and click 'Edit'.

5
Add Permissions

Add the IIS AppPool identity (or your specific service account) and check the boxes for 'Local Launch' and 'Local Activation'. Click OK to save the changes.

Adjust DCOM Permissions in Component Services
Free Microsoft Office alternative

Try WPS Office for a Seamless Document Experience

Server-side automation of Microsoft Office can be prone to complex DCOM errors and high resource usage. For an efficient, stable, and user-friendly experience, WPS Office provides a lightweight and highly compatible alternative for everyday document editing and processing.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation package.
  2. 2. Install the Application: Run the installer and follow the on-screen instructions to set up WPS Office on your device.
  3. 3. Open and Edit: Launch WPS Office to instantly open, edit, and save your existing Word, Excel, and PowerPoint files.
Fully compatible with Microsoft Office formats, including .docx, .xlsx, and .pptx.Lightweight installation that avoids heavy server-side resource consumption.Familiar user interface for a zero-learning-curve transition.Free to use with comprehensive document, spreadsheet, and presentation features.
QA img-9

Frequently Asked Questions

Why does Microsoft Office automation fail with error 80070005 on IIS?

Error 80070005 stands for 'Access Denied.' When running .NET automation through IIS, the application pool identity running the code typically lacks the necessary permissions to launch and activate COM components like Microsoft Word or Excel.

Is server-side automation of Microsoft Office supported?

Microsoft strongly recommends against server-side automation of Office applications. It is officially unsupported and can lead to instability, deadlocks, and permission errors like DCOM 80070005.

How do I find the correct Office application in DCOM Config?

Open Component Services (dcomcnfg) and look for 'Microsoft Excel Application' or 'Microsoft Word 97 - 2003 Document' in the DCOM Config folder. If they are missing on a 64-bit server, you may need to open the 32-bit Component Services console by running 'mmc comexp.msc /32' in the Run dialog.