ERROR

COM object with CLSID {} is either not valid or not registered

Last Published: April 25, 2020

Error Message

When writing MapObjects code with C#, for example:

Code:
MapObjects2.GeoEvent eventPt = new GeoEventClass();

the following error message may occur:

"COM object with CLSID {} is either not valid or not registered".

Cause

This is not a class that can be created.

Solution or Workaround



Do not use the new keyword to create the class.

Code:
MapObjects2.GeoEvent eventPt;

Article ID:000006145

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic