Ticket #51 (closed Defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Install Problem with ArcGIS 9.2

Reported by: bbest Owned by: jjr8
Priority: High Milestone: 0.1
Component: Build System Version: null
Keywords: Cc:

Description (last modified by bbest) (diff)

hey jason,

fyi, i get mget install error with arcgis 9.2sp1 (you mention only tested with arcgis 9.1). the biggest difference is instantiation of geoprocessor (from arcgis help: what's new):

# 9.1 style (supposedly backwards compatible with 9.2)
import win32com.client
gp = win32com.client.Dispatch(“esrigeoprocessing.gpdispatch.1”)

# 9.2
import arcgisscripting
gp = arcgisscripting.create()

-ben

WARNING: Failed to add the ArcGIS toolbox to ArcCatalog. The toolbox registration program "C:\Python24\lib\site-packages\GeoEco\ArcGISToolbox\Bin\RegisterToolboxWithArcCatalog.exe register 'C:\Python24\lib\site-packages\GeoEco\ArcGISToolbox\Marine Geospatial Ecology Tools.tbx'" reported: Unhandled Exception: System.TypeInitializationException: The type initializer for 'RegisterToolboxWithArcCatalog.Program' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'ESRI.ArcGIS.Geoprocessing, Version=9.1.0.722, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. The system cannot find the file specified.
File name: 'ESRI.ArcGIS.Geoprocessing, Version=9.1.0.722, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86'
   at RegisterToolboxWithArcCatalog.Program..cctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

   --- End of inner exception stack trace ---
   at RegisterToolboxWithArcCatalog.Program.Main(String[] args)

You can manually add the toolbox to ArcCatalog from this location:

C:\Python24\lib\site-packages\GeoEco\ArcGISToolbox\Marine Geospatial Ecology Tools.tbx

Some installation tasks failed. Please review the error messages above.

Change History

Changed 6 years ago by jjr8

  • status changed from new to assigned
  • component changed from Unknown to Build System

The failure is with the program that adds the Marine Geospatial Ecology Tools .tbx to the list in ArcCatalog?. It looks like Arc 9.2 does not include the .Net assemblies from Arc 9.1, and my program fails because it wants the 9.1 assemblies. I will have to research the best way to deal with this.

I am blocked on ArcGIS 9.2 related development until my new computer arrives in April.

Changed 6 years ago by bbest

  • priority changed from Medium to High
  • description modified (diff)

Changed 6 years ago by jjr8

Partially fixed in [65].

Now, on 9.2, ArcCatalog starts up but does not immediately exit. You have to close it manually. The GeoEco installer will also report an error, saying ArcCatalog exited before it had an opportunity to add the Marine Geospatial Ecology Toolbox.tbx to ArcCatalog's list of toolboxes. You have to add it manually, as described in the error message.

The problem here is that the toolbox registration program (RegisterToolboxWithArcCatalog.exe) does not work on 9.2. It starts ArcCatalog.exe and waits for the IAppROTEvents.AppAdded event to be fired by AppROTClass. The event contains an AppRef value that allows us to obtain the IArcToolboxExtension instance that we need to add the toolbox. But the AppAdded event is never fired.

I will try recompiling RegisterToolboxWithArcCatalog.exe against the Arc 9.2 .NET assemblies and see if that works...

Changed 6 years ago by jjr8

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in [68]. You can now install on both Arc 9.1 or 9.2 without any errors or known loss of functionality. I have only performed minimal testing on Arc 9.2 however.

Note: See TracTickets for help on using tickets.