ERROR

An unhandled exception of type 'System.Runtime.InteropServices' occured in the xxx.exe

Last Published: April 25, 2020

Error Message

When exporting with ArcPress in a standalone application, the following error may occur:

"An unhandled exception of type 'System.RUntime.InteropServices.COMException' occured in the WindowsApplication1.exe"

Cause

The system variable path isn't pointing to the ArcGIS bin directory.

Solution or Workaround

Set the system path variable.

  1. Navigate to Control Panel > System > Advanced tab > Environment Variables > System Variables.
  2. Under System Variables, double-click path.
  3. Set the variable value to point to the ArcGIS bin directory:

    C:\arcgis\arcexe83\bin

    Be sure to include a semi-colon to separate entries. For example:

    C:\SomeOtherApp\bin;D:\arcgis\arcexe83\bin

Article ID:000006534

Software:
  • ArcMap 8 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic