Select to view content in your preferred language

ArcGIS Explorer Application Configuration Manager Crashing

3338
1
06-18-2012 03:45 PM
by Anonymous User
Not applicable
Original User: lukepaine

I have developed a custom add in for ArcGIS Explorer, which all works well. I have four buttons in the Add In, which I am now trying to a custom configuration (so that they appear on the Home ribbon, instead of the Add Ins tab. Two of the buttons work fine - they can be added from the manager, I can save it, and then appear fine in Explorer.
With the other two, as soon as I try to add the button in the Manager, an Unhandled exception message pops up, and the Manager crashes (error message below).

[ATTACH=CONFIG]15310[/ATTACH]

The buttons that work are named butLayerManager and butRailLocator. The two that don't are butSettings and butAbout.

Very strange, and very annoying!

Any ideas would be greatly appreciated.
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: lukepaine

Well I have managed to solve my problem... The issue was that in my XML configuration file, I had 5 tools: butLayerManager, butRailLocator, winRailLocator, butSettings and butAbout.

The butRailLocator and winRailLocator tools essentially do the same things; the win version is a dockable window, the but is a windows form. For this project, we did not require the dockable window version, so i commented it out in the xml config. i.e.:

<!--<dockWindow
     id="winRailLocator"
     assembly="RailExplorer_ForExplorer.dll"
     className="RailExplorer_ForExplorer.winRailLocator"
     caption="Rail Locator (dockable)"
     largeImage="Images\winRailLocator_LargeImage.png"
     smallImage="Images\winRailLocator_SmallImage.png" />-->


Turns out that the commenting screws with the addin. If i remove the comments, rebuild the addin, all is fine and works well in Explorer and the Application Manager.

Incidentally, if i now go to add a new Add-in component using visual studio, i get an error saying "Invalid ArcGIS Add-in Project. Unable to add new Add-in item to this project." I haven't found a way to get around this yet though.
0 Kudos