Friday, 1 December 2017

arcobjects - ArcGIS 10 Add-In Does not Work on Other computers


I developed a user form that allows user to edit feature attributes in visual basic 2008. vb.net. The add-in's that I built work great on my computer, but when I tried it on another, it crashes ArcMap.


is this because the DeveloperKit is not installed on the other computer?




I manually add-in the tool (i.e., Customize, Add from file, etc) and it looks like it installs. ArcMap crashes when I click on the button though. On my computer it work correctly using the same method.


I have uploaded the file to here: http://wfurl.com/3611b10




Answer



(Months later...)


The answer is to not reference 3rd party dependencies if they aren't on the clients' machines and you aren't distributing them with your add-in. In this case it was the Visual Basic Power Packs dependency, which from the sounds of it wasn't being used anyways.


You should also be sure to implement error handling at all entry points to your add-in so that the host ArcGIS application does not swallow the errors or crash.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...