Problem:  When adding a .dll file in ArcMap, a “Cannot add an object�? error is returned

相关信息
Article ID: 42433
Bug Id: N/A
Software:
ArcGIS - ArcEditor 10
ArcGIS - ArcInfo 10
ArcGIS - ArcView 10
ArcGIS for Desktop Advanced 10.1, 10.2, 10.2.1, 10.2.2
ArcGIS for Desktop Standard 10.1, 10.2, 10.2.1, 10.2.2
ArcGIS for Desktop Basic 10.1, 10.2, 10.2.1, 10.2.2
Platforms:
Windows XP, Windows 7, Windows 8, Windows 8.1

问题描述
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."


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


原因
The .dll file was selected instead of the .tlb file.
已邀请:

易智瑞技术支持

赞同来自:

解决方案
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.






Related Information
  1. Registering classes in COM component categories


Created: 4/15/2014 Last Modified: 6/11/2014

原文链接
http://support.esri.com/en/kno ... 42433

要回复问题请先登录注册