mapaction / mapaction-toolbox

A collection of tools to help streamline the process of producing maps including data renaming and map exports.
GNU General Public License v3.0
3 stars 1 forks source link

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

Closed stringfellow closed 10 years ago

stringfellow commented 10 years ago

From antony.s...@gmail.com on September 14, 2013 18:49:27

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: http://code.google.com/p/mapaction-toolbox/issues/detail?id=73

stringfellow commented 10 years ago

From ClaireBy...@gmail.com on September 15, 2013 02:59:29

Status: Accepted

stringfellow commented 10 years ago

From ClaireBy...@gmail.com on September 15, 2013 03:21:59

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

stringfellow commented 10 years ago

From ClaireBy...@gmail.com on September 15, 2013 03:21:59

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

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.

stringfellow commented 10 years ago

From ewingch...@gmail.com on October 19, 2013 08:23:57

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-desktop-add-in )

a. to install silently (on 64-bit xp) C:\Program Files (x86)\Common Files\ArcGIS\bin\esriregaddin.exe "\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.

Owner: ewingch...@gmail.com
Cc: andrewphilipsmith

stringfellow commented 10 years ago

From andrewphilipsmith on October 23, 2013 12:43:07

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.

Labels: -Priority-Medium Priority-High

stringfellow commented 10 years ago

From andrewphilipsmith on October 28, 2013 08:43:05

Labels: Milestone-Release3.1

stringfellow commented 10 years ago

From andrewphilipsmith on November 22, 2013 18:42:02

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.

Status: Fixed

stringfellow commented 10 years ago

From andrewphilipsmith on November 28, 2013 08:42:49

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=svnb95e2e353b372e50dcfed9a99da157a381037a01&old=7d0d9423b33cfbe61edb3d5edd9dfaf931fb8d74&r=b95e2e353b372e50dcfed9a99da157a381037a01&format=unidiff&path=%2Farcgis10_mapping_tools%2FMapAction%2FMapAction%2FMapAction.csproj

stringfellow commented 10 years ago

From ClaireBy...@gmail.com on August 16, 2014 09:12:52

Can no longer replicate, assume fixed.

Status: Verified