Troubleshooting
Problem
Symptom
******************************* Details of the error message ********************************
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidCastException: Unable to cast COM object of type 'EARTHLib.ApplicationGEClass' to interface type 'EARTHLib.IApplicationGE'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2830837B-D4E8-48C6-B6EE-04633372ABE4}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at EARTHLib.ApplicationGEClass.IsInitialized()
at i2.Notebook.Tasks.MapChartItems.Mapping.Mapper.InitializeGoogleEarth(Boolean& newInstanceCreated)
at i2.Notebook.Tasks.MapChartItems.Mapping.Mapper.GenerateKmz(Boolean initializeGoogleEarth, String chartKey, Boolean surpressMessages, Boolean sendToGoogleEarth)
at i2.Notebook.Tasks.MapChartItems.Mapping.Mapper.GenerateKmz(String chartKey, Boolean sendToGoogleEarth)
at i2.Notebook.Tasks.MapChartItems.MappingControl.MappingController.GenerateMappingDataFiles(String chartKey, LNChart currentChart, Boolean sendToGoogleEarth)
at i2.Notebook.Tasks.MapChartItems.MappingControl.MappingController.GenerateMappingDataFilesForExtractedItems(LNChart currentChart, ICollection`1 extractedAnbDataList, IEnumerable`1 links, Boolean sendToGoogleEarth)
at i2.Notebook.Tasks.MapChartItems.MappingControl.MappingController.GenerateGoogleEarthMappingDataFiles(LNChart currentChart, Boolean sendToGoogleEarth)
at i2.Notebook.Tasks.MapChartItems.ToolbarControl.GenerateMappingData(Boolean sendToGoogleEarth)
at i2.Notebook.Tasks.MapChartItems.ToolbarControl.btnSendToMap_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at i2.Notebook.Support.ThemedTaskButtonBase.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Cause
For versions of Google earth released after 12th December 2015. Google deprecated the Google Earth API used by Analysts notebook. Below are the Google earth versions tested, known to be compatible/not compatible with ANB:
GE v 6.2.2.6613 - [COMPATIBLE - Ends & Links are sent & drawn on the GE Map]
GE v 7.1.8.3036 - [COMPATIBLE - Ends & Links are sent & drawn on the GE Map]
Google Earth Pro
v 6.2.2.6613 - [COMPATIBLE - Ends & Links are sent & drawn on the GE Map]
v 7.1.8.3036 - [COMPATIBLE - Ends & Links are sent & drawn on the GE Map]
v 7.3.1 (32-bit) - [COMPATIBLE - Ends & Links are sent & drawn on the GE Map]
v 7.3.1 (64-bit) - [NOT COMPATIBLE]
NOTES:
When you search for Google Earth download, the default drop page offers the download of v7.3.1 (64-bit) which does not work with ANB. To get a compatible version, you have to navigate to the "Direct Installers page" (found here: https://support.google.com/earth/answer/168344?hl=en).
For all the compatible versions, you have to manually register the Google Earth executable:
- goto GE's install folder using the Command Prompt
- run/execute the following "GoogleEarth.exe /regserver"
If a later compatible version of Google Earth is not available then as an alternative, instead use the Map chart items to Esri feature introduced in Analysts notebook 9.0.5 or later
https://www-01.ibm.com/support/docview.wss?uid=swg27036288
Resolving The Problem
- Click on Start => Control Panel => Program and Features.
- In the list of installed programs, highlight Google Earth then click on 'Repair'.
- Follow the instructions and complete the repair process.
- Once it's completed, shutdown and restart the machine.
If the issue still exist after repairing the Google Earth installation then try to register the Google Earth executable. Here's how you can do that;
- Check in which directory the Google Earth program is installed and make note of it.
- Click on Start => All Programs => Accessories
- Right click on the Command Prompt and select 'Run As Administrator from the list.
- Once the Command Prompt window launched make sure you are in the directory where the Google Earth is installed. i.e. "C:\Program Files (x86)\Google\Google Earth Pro\client\googleearth.exe"
- If the example file path (above) matches with yours then type the following command in the Command Prompt and press Enter. i.e. "C:\Program Files (x86)\Google\Google Earth Pro\client\googleearth.exe" /RegServer
- Start Google Earth then try to map chart items.
Was this topic helpful?
Document Information
Modified date:
23 July 2019
UID
swg21990583