Cause 1: Broken DCOM Permissions (The 90% Fix)
I've seen this error in production about a hundred times. The root cause, nine times out of ten, is a DCOM component that can't get the permissions it needs. When the RPC stub tries to pass a reference to a COM object and the server denies access, it returns NULL, which triggers 0X000006F4.
This usually happens after a Windows Update or after installing software that tweaks DCOM settings (yes, I'm looking at you, some third-party backup tools). The fix is to reset DCOM permissions to their defaults.
How to fix DCOM permissions
- Press
Win + R, typedcomcnfg, hit Enter. - Expand Component Services → Computers → My Computer.
- Right-click My Computer and choose Properties.
- Go to the Default Properties tab. Make sure Enable Distributed COM on this computer is checked. If it's not, check it and restart the machine.
- Now go to the COM Security tab. Click Edit Default under both Access Permissions and Launch and Activation Permissions.
- In each dialog, make sure the groups
Everyone(orAuthenticated Users) andSYSTEMhave Allow for all permissions. If they're missing, add them. - Click OK, close the console, and reboot.
This is the first thing I do, and it clears the error in most cases. If it doesn't, move to the next cause.
Cause 2: Disabled or Corrupted RPC Services
I once spent an hour chasing a NULL pointer error only to find the Remote Procedure Call (RPC) service was set to Manual and had stopped. Without the RPC service running, the stub can't resolve references, and you get 0X000006F4.
This can happen if a security tool or a power user disabled the service to "optimize" Windows. Don't do that. RPC is not optional.
How to check and fix RPC services
- Press
Win + R, typeservices.msc, hit Enter. - Scroll to Remote Procedure Call (RPC). It should be Running and set to Automatic.
- If it's not running, right-click and Start. Then double-click to set Startup type to Automatic.
- Also check DCOM Server Process Launcher and RPC Endpoint Mapper. Both should be Automatic and Running.
- Restart the services (or reboot) and test.
If the services keep stopping, you might have a corrupted system file. Run sfc /scannow from an elevated command prompt. That catches most corruption.
Cause 3: Faulty Application or Driver Passing a Null Pointer
Sometimes the error isn't about system configuration at all. It's a bug in the app you're running. The RPC stub is doing its job — it's just receiving a NULL from the caller. This often happens with badly written printer drivers, VPN clients, or custom in-house software that uses RPC heavily.
I've seen this with older versions of a certain backup agent that crashed on a specific network share, triggering 0X000006F4 every time. The app was trying to pass a handle to a folder that didn't exist, and instead of returning a proper error, it passed NULL.
How to identify the culprit
- Check the Windows Event Viewer:
Event Viewer→ Windows Logs → System or Application. - Look for errors around the time the RPC error appears. The source will often name the problematic executable or driver.
- If you suspect a printer driver, update or reinstall it. If it's a VPN, try disabling and reconnecting.
- For a specific app, check for updates or patches. If it's custom software, report the bug to your dev team with the stack trace.
Once you fix or update the culprit, the error disappears. No amount of registry tinkering will help here.
Quick Reference Summary
| Cause | Symptom | Fix |
|---|---|---|
| Broken DCOM permissions | Error after Windows Update or software install | Reset DCOM defaults in dcomcnfg |
| RPC services disabled | Error on startup or when opening shared resources | Set RPC services to Automatic and Running |
| App/driver bug | Error only with a specific app or device | Update/reinstall the app or driver |
That's it. Start with the DCOM fix because it's the most common, and you'll save yourself hours. If you've tried all three and still see the error, check if the machine is joined to a domain and whether Group Policy is enforcing any DCOM restrictions — that's a more niche scenario, but I've seen it at a client with a very locked-down financial environment.