English

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

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