zenwalk / mapaction-toolbox

Automatically exported from code.google.com/p/mapaction-toolbox
0 stars 0 forks source link

Export tool gives no completion message and error on close #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Export map
2.
3.

What is the expected output?
Completion message

What do you see instead?
Export works, but box remains, and .Net error appears on close of dialogue

What version of the product are you using? On what operating system?
Arc 10.1 W 7

Please provide any additional information below.

Original issue reported on code.google.com by antony.s...@gmail.com on 14 Sep 2013 at 5:49

GoogleCodeExporter commented 9 years ago

Original comment by ClaireBy...@gmail.com on 15 Sep 2013 at 9:59

GoogleCodeExporter commented 9 years ago
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'Ionic.Zip, 
Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c' or one of 
its dependencies. The system cannot find the file specified.
File name: 'Ionic.Zip, Version=1.9.1.8, Culture=neutral, 
PublicKeyToken=edbe51ad942a3f5c'
   at MapAction.MapExport.createZip(Dictionary`2 dictPaths)
   at Alpha_ExportTool.frmMain.btnCreateZip_Click(Object sender, EventArgs e) in Z:\code\nunit-trail\arcgis10_mapping_tools\Alpha_ExportTool\Alpha_ExportTool\frmMain.cs:line 268
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

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].

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ESRI.DADF.Core
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.1.3143
    CodeBase: file:///C:/Program%20Files/ArcGIS/Desktop10.1/bin/ESRI.DADF.Core.DLL
----------------------------------------
msvcm90
    Assembly Version: 9.0.30729.6161
    Win32 Version: 9.00.30729.6161
    CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57/msvcm90.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
ESRI.ArcGIS.SearchUI
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Program%20Files/ArcGIS/Desktop10.1/bin/ESRI.ArcGIS.SearchUI.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ESRI.ArcGIS.Framework
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.Framework/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Framework.dll
----------------------------------------
ESRI.ArcGIS.System
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.System/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.System.dll
----------------------------------------
ESRI.ArcGIS.SearchControl
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.1.3143
    CodeBase: file:///C:/Program%20Files/ArcGIS/Desktop10.1/bin/ESRI.ArcGIS.SearchControl.DLL
----------------------------------------
ESRI.ArcGIS.SearchCore
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.1.3143
    CodeBase: file:///C:/Program%20Files/ArcGIS/Desktop10.1/bin/ESRI.ArcGIS.SearchCore.DLL
----------------------------------------
ESRI.ArcGIS.Carto
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.Carto/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Carto.dll
----------------------------------------
ESRI.ArcGIS.Search
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.Search/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Search.dll
----------------------------------------
ESRI.ArcGIS.SystemUI
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.SystemUI/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.SystemUI.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ESRI.ArcGIS.Version
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.Version/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Version.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
ESRI.ArcGIS.ArcMapUI
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.ArcMapUI/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.ArcMapUI.dll
----------------------------------------
ESRI.ArcGIS.Geoprocessing
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.Geoprocessing/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Geoprocessing.dll
----------------------------------------
GpMetadataFunctions
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.1.3143
    CodeBase: file:///C:/Program%20Files/ArcGIS/Desktop10.1/bin/GpMetadataFunctions.DLL
----------------------------------------
ESRI.ArcGIS.Geodatabase
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.Geodatabase/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Geodatabase.dll
----------------------------------------
ETGeoWizards102
    Assembly Version: 10.2.0.0
    Win32 Version: 10.2.0.0
    CodeBase: file:///c:/program%20files/et%20spatialtechniques/et%20geowizards%2010.2%20for%20arcgis%2010.1/etgeowizards102.dll
----------------------------------------
ResourceAssembly
    Assembly Version: 1.0.0.0
    Win32 Version: 10.2.0.0
    CodeBase: file:///c:/program%20files/et%20spatialtechniques/et%20geowizards%2010.2%20for%20arcgis%2010.1/etgeowizards102.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.5420 built by: Win7SP1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Data.SqlXml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Data.SqlXml/2.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll
----------------------------------------
System.Xml.Xsl.CompiledQuery.1
    Assembly Version: 0.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Data.SqlXml/2.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll
----------------------------------------
Lucene.Net
    Assembly Version: 2.9.2.1
    Win32 Version: 2.9.2.1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Lucene.Net/2.9.2.1__402f1553d5c332e7/Lucene.Net.dll
----------------------------------------
ESRI.ArcGIS.Geometry
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.Geometry/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Geometry.dll
----------------------------------------
Snowball.Net
    Assembly Version: 2.0.0.1
    Win32 Version: 2.0.0.1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Snowball.Net/2.0.0.1__402f1553d5c332e7/Snowball.Net.dll
----------------------------------------
ESRI.ArcGIS.MxCommands
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.1.3143
    CodeBase: file:///C:/Program%20Files/ArcGIS/Desktop10.1/bin/ESRI.ArcGIS.MxCommands.DLL
----------------------------------------
PresentationFramework
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.6920.5448 built by: Win7SP1GDR
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/PresentationFramework/3.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
WindowsBase
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.6920.5448 built by: Win7SP1GDR
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/WindowsBase/3.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
PresentationCore
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.6920.5448 built by: Win7SP1GDR
    CodeBase: file:///C:/Windows/assembly/GAC_32/PresentationCore/3.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
ESRI.ArcGIS.Desktop.AddIns.Factory
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Program%20Files/ArcGIS/Desktop10.1/bin/ESRI.ArcGIS.Desktop.AddIns.Factory.DLL
----------------------------------------
ESRI.ArcGIS.Desktop.AddIns
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Program%20Files/ArcGIS/Desktop10.1/bin/ESRI.ArcGIS.Desktop.AddIns.DLL
----------------------------------------
ESRI.ArcGIS.MapCenter
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.1.3143
    CodeBase: file:///C:/Users/mapaction/AppData/Local/ESRI/Desktop10.1/AssemblyCache/%7BBF7B0FAD-2CBC-78AD-DB3F-D23F0474A4CE%7D/ESRI.ArcGIS.MapCenter.dll
----------------------------------------
ESRI.ArcGIS.ArcGlobe
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.ArcGlobe/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.ArcGlobe.dll
----------------------------------------
ESRI.ArcGIS.ArcScene
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.ArcScene/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.ArcScene.dll
----------------------------------------
Alpha_ConfigTool
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/mapaction/AppData/Local/ESRI/Desktop10.1/AssemblyCache/%7BBF7F73B0-25A0-20A5-9262-09F18AF4D8DC%7D/Alpha_ConfigTool.dll
----------------------------------------
MapAction
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/mapaction/AppData/Local/ESRI/Desktop10.1/AssemblyCache/%7BBF7F73B0-25A0-20A5-9262-09F18AF4D8DC%7D/MapAction.DLL
----------------------------------------
System.Xml.Linq
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.5420 built by: Win7SP1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
Alpha_LayoutTool
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/mapaction/AppData/Local/ESRI/Desktop10.1/AssemblyCache/%7BA539D51D-E1BB-CE3E-AF7D-3B8DC142A711%7D/Alpha_LayoutTool.dll
----------------------------------------
Alpha_ExportTool
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/mapaction/AppData/Local/ESRI/Desktop10.1/AssemblyCache/%7B166F3918-26FE-178B-5357-54A02B8B1737%7D/Alpha_ExportTool.dll
----------------------------------------
ESRI.ArcGIS.Output
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.Output/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Output.dll
----------------------------------------
ESRI.ArcGIS.Display
    Assembly Version: 10.1.0.0
    Win32 Version: 10.1.0.3035
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ESRI.ArcGIS.Display/10.1.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Display.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Original comment by ClaireBy...@gmail.com on 15 Sep 2013 at 10:21

GoogleCodeExporter commented 9 years ago
A > short solution
To sort this double-click the ESRI addin "ExportTool.esriAddIn" in Windows 
Explorer to install it properly.

B > more details
The ExportTool.esriAddIn can be installed by double-clicking on it in the add 
in folder location or by using the esriregaddin.exe tool
So the fix is to double-click on the ExportTool.esriAddIn in the add-in folder. 
The error message should now go away.

C > reason it was failing
This is caused by the ionic.dll  (zip library) is not being registered 
properly. 

This is because the ExportTool.esriAddIn needs to be 'installed' (to register 
the ionic.dll) rather than just pointed to in ArcMap.

D >  Further notes for Andy for deploying the add-ins to all laptops.....
to deploy add-ins using the ESRI Add-In Installation Utility
(also described a bit here 
http://gis.stackexchange.com/questions/25617/deployment-options-of-arcgis-deskto
p-add-in)

a. to install silently (on 64-bit xp)
C:\Program Files (x86)\Common Files\ArcGIS\bin\esriregaddin.exe "<path to add 
in>\Alpha_ExportTool.esriAddIn" /s

b. to uninstall silently (on 64-bit xp)
C:\Program Files (x86)\Common Files\ArcGIS\bin\esriregaddin.exe "{1472afad-112a-
4f7e-9d6e-5b2083d133bf}" /u /s
(you need the ESRI AddInID to uninstall which is a bit painful)

Hope this helps.

Original comment by ewingch...@gmail.com on 19 Oct 2013 at 3:23

GoogleCodeExporter commented 9 years ago
Further more registering an esriaddin either by doubleclicking or by using the 
esriaddin.exe tool *must* be done as the end user (mapaction in our case). and 
can't be done by the SYSTEM user during boot up.

Original comment by andrewphilipsmith on 23 Oct 2013 at 7:43

GoogleCodeExporter commented 9 years ago

Original comment by andrewphilipsmith on 28 Oct 2013 at 3:43

GoogleCodeExporter commented 9 years ago
Believed to be fixed in revision b95e2e353b37.
This removes the dependency on Ionic.Zip and instead creates the zip file using 
7zip in the separate process.

Original comment by andrewphilipsmith on 23 Nov 2013 at 2:42

GoogleCodeExporter commented 9 years ago
I think I've spotted the origional source of the problem. See the HintPath in 
this change:
https://code.google.com/p/mapaction-toolbox/source/diff?spec=svnb95e2e353b372e50
dcfed9a99da157a381037a01&old=7d0d9423b33cfbe61edb3d5edd9dfaf931fb8d74&r=b95e2e35
3b372e50dcfed9a99da157a381037a01&format=unidiff&path=%2Farcgis10_mapping_tools%2
FMapAction%2FMapAction%2FMapAction.csproj

Original comment by andrewphilipsmith on 28 Nov 2013 at 4:42

GoogleCodeExporter commented 9 years ago
Can no longer replicate, assume fixed.

Original comment by ClaireBy...@gmail.com on 16 Aug 2014 at 4:12