PROBLEM

When adding a .dll file in ArcMap, a "Cannot add an object" error is returned

Last Published: October 1, 2025

Description

When working with COM custom components in ArcMap, adding .dll files manually to the component library through the ‘Add from File’ button on the Customize dialog box in ArcMap may result in the following error:

"Cannot add an object."

Note:
This is a generic error message and may occur under a number of circumstances.

Cause

The .dll file was selected instead of the .tlb file.

Solution or Workaround

Choose a .tlb file instead of the .dll file. Add the .tlb (type library) file through the 'Add from File' button on the Customize dialog box in ArcMap.
[O-Image]

Article ID: 000012032

Software:
  • ArcMap

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options