keepcalculator

06 Numbers and Powers

Automation Server Can’t Create Object? Fix It

Card No. 06·38641 · Updated · Standard formula, shown below

“Automation server can’t create object” is a Windows error that appears when a program tries to use another program’s automation interface (COM/OLE) and Windows cannot start that server. The fix usually involves repairing the registration of the component, fixing permissions, or re-enabling a disabled service, and this article walks through the exact steps.

What Does This Error Mean?

Automation servers are background programs that expose their functions to other programs through Component Object Model (COM) or OLE (Object Linking and Embedding). When you see this error, the client program (e.g., Excel trying to embed a Word document) has found the server’s registration in the Windows Registry but failed to launch it. The failure can be due to missing DLLs, broken registry keys, blocked execution (e.g., by antivirus), or the server being an out-of-process EXE that can’t start.

Common Causes

  • Corrupted COM registration – A program uninstall or update left orphaned registry entries.
  • Missing or mismatched DLLs – The server’s DLL is not registered (regsvr32) or the wrong version is present.
  • Permission problems – The client runs as a different user (e.g., an ASP.NET app pool) that lacks rights to launch the server.
  • Disabled DCOM services – The Distributed Transaction Coordinator or RPC services are stopped.
  • Antivirus or Group Policy – Execution of the server EXE is blocked.
  • 32-bit vs 64-bit mismatch – A 32-bit server cannot be launched from a 64-bit client (or vice versa) without proper registry redirection.

Step-by-Step Fixes

  1. Restart the computer – Clears temporary locks and starts all services.
  2. Re-register the component – Open Command Prompt as Administrator and type regsvr32 "path\to\server.dll". For 32-bit DLLs on 64-bit Windows, use C:\Windows\SysWOW64\regsvr32.exe.
  3. Check DCOM permissions – Open dcomcnfg (Component Services) → Component Services → Computers → My Computer → DCOM Config. Find the server (e.g., Microsoft Word), right-click → Properties → Security tab. Ensure the launching user has Local Launch and Local Activation permissions.
  4. Ensure dependent services run – Services: Remote Procedure Call (RPC), DCOM Server Process Launcher, and Distributed Transaction Coordinator should be set to Automatic and started.
  5. Temporarily disable antivirus – If the error disappears, add an exception for the server EXE and the client program.
  6. Repair the server application – Run the application’s installer and choose “Repair” to restore missing files and registry entries.
  7. Check the Event Viewer – Look for Application logs around the time of the error; they often list the specific server CLSID or faulting module.

Specific Scenarios

Microsoft Office automation – If you get this error when automating Word or Excel from code, ensure the Office version is fully installed, not just the web apps. For server-side automation (e.g., IIS), Microsoft recommends avoiding Office automation entirely because it’s unsupported and unstable; use OpenXML SDK or a third-party library instead.

Legacy VB6 or ActiveX controls – On 64-bit Windows, 32-bit ActiveX controls need to run in a 32-bit host. In Internet Explorer, enable “Run 32-bit processes in 64-bit mode” or use the 32-bit IE version. For a custom control, re-register it with the 32-bit regsvr32.

ASP.NET and DCOM – If the error appears in a web application, the app pool identity (e.g., NETWORK SERVICE) must have DCOM launch permissions. Use dcomcnfg to grant the identity the right to launch the server. Also, set the server’s Identity to “Interactive User” only if a user is logged in; otherwise, use “The launching user” or a dedicated account.

How to Prevent Recurrence

  • Always install software updates and service packs for the server application.
  • Use the official uninstaller to remove programs, then restart before reinstalling.
  • When moving from 32-bit to 64-bit Windows, reinstall all 32-bit applications instead of copying folders.
  • For development, use the correct bitness: compile the client to match the server (or use COM interop that handles it).
  • Keep antivirus exclusions for legitimate automation executables.

Frequently Asked Questions

Why does this error appear in Excel but not in Word?

Each Office application has its own COM server. If Excel’s registration is broken (e.g., after a partial update), only Excel will fail. Repairing Excel via Control Panel → Programs → Microsoft Office → Change → Quick Repair usually fixes it.

Is this error a security problem?

No, it’s a functionality error. It means a program couldn’t start another program’s component. However, if it occurs during web browsing, it might indicate a malicious site trying to run an ActiveX control; in that case, don’t allow it and run an antivirus scan.

Can I fix this by deleting registry keys?

Only if you know exactly which key is corrupt. Deleting the wrong key can break other applications. Prefer using the application’s repair or re-registering the DLL. If you must edit the registry, back it up first.

Does this error occur on Windows 11?

Yes, it can occur on any Windows version, including 11. The fix steps are the same, though the dcomcnfg interface looks slightly different but functions identically.

What if the error is from a specific program like AutoCAD or QuickBooks?

For third-party software, check the vendor’s support site for a specific fix. Often, reinstalling the software or running a repair utility resolves it. Also, ensure the software is compatible with your Windows version and bitness.

When to Seek Professional Help

If you’ve tried the steps above and the error persists, it may be due to deep registry corruption or a damaged Windows installation. In such cases, consider using System Restore to a point before the issue started, or run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth to repair system files. If the problem is critical and you’re not comfortable with advanced troubleshooting, consult a professional IT technician.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →