Hi,
I’m having an issue deploying an application that included CAD layer support. When trying to add a CAD layer to the map I get the following error. I have included both the TeighaCad folders (x86 and x64) in the installation package (MSI). The layers work fine in the development environment.
Any thoughts?
Regards,
Jonathan
========================================================================================
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.TypeInitializationException: The type initializer for ‘Teigha.Core.GlobalsPINVOKE’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘SWIGExceptionHelper’ threw an exception. —> System.DllNotFoundException: Unable to load DLL ‘TD_SwigCore_4.02_10.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Teigha.Core.GlobalsPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_Globals(ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidCastDelegate, ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate)
at Teigha.Core.GlobalsPINVOKE.SWIGExceptionHelper…cctor()
— End of inner exception stack trace —
at Teigha.Core.GlobalsPINVOKE.SWIGExceptionHelper…ctor()
at Teigha.Core.GlobalsPINVOKE…cctor()
— End of inner exception stack trace —
at Teigha.Core.GlobalsPINVOKE.new_ExSystemServices()
at Teigha.Core.ExSystemServices…ctor()
at CadDumper.DwgDxfCadDumper.Dump()
at CadDumper.DwgDxfCadDumper.GetFeatureStyles()
— End of inner exception stack trace —
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at ThinkGeo.MapSuite.Layers.CadFeatureSource.Mkc=(String cadPathFilename)
at ThinkGeo.MapSuite.Layers.CadFeatureSource.L0c=()
at ThinkGeo.MapSuite.Layers.CadFeatureSource.GetAllFeaturesCore(IEnumerable`1 returningColumnNames)
at ThinkGeo.MapSuite.Layers.FeatureSource.GetBoundingBoxCore()
at ThinkGeo.MapSuite.Layers.FeatureSource.GetBoundingBox()
at enzo.PearProjection.ProjectionHelper.OutOfBounds(FeatureSource featureSource, Double eastingLimit, Double northingLimit) in c:\Users\User\Source\Workspaces\Pear Technology\Enzo\enzo\Projection\ProjectionHelper.cs:line 78
at enzo.PearProjection.ProjectionHelper.SetAutoMetricScaleProjection(FeatureSource source) in c:\Users\User\Source\Workspaces\Pear Technology\Enzo\enzo\Projection\ProjectionHelper.cs:line 96
at enzo.Importing.CadImporter…ctor(String filePath, String layerName) in c:\Users\User\Source\Workspaces\Pear Technology\Enzo\enzo\Importing\CadImporter.cs:line 36
at enzo.XMLFiles.XMLFilesProject.ProjectHelper.AddFile(FileDataSource fileData) in c:\Users\User\Source\Workspaces\Pear Technology\Enzo\enzo\XMLFiles\XMLFilesProject\XMLFileProjectHelper.cs:line 161
at enzo.PopupForms.FILEPopupForm.ApplyFileDataSource() in c:\Users\User\Source\Workspaces\Pear Technology\Enzo\enzo\PopupForms\FILEPopupForm.cs:line 471
at enzo.PopupForms.FILEPopupForm.ubtnApply_Click(Object sender, EventArgs e) in c:\Users\User\Source\Workspaces\Pear Technology\Enzo\enzo\PopupForms\FILEPopupForm.cs:line 332
at Infragistics.Win.Misc.UltraButtonBase.OnClick(EventArgs e)
at Infragistics.Win.Misc.UltraButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18063 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
Pear GIS
Assembly Version: 1.0.19.20402
Win32 Version: 1.0.19
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Pear%20GIS.exe
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
ThinkGeo.MapSuite.WinForms
Assembly Version: 10.0.0.0
Win32 Version: 10.2.8
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/ThinkGeo.MapSuite.WinForms.DLL
ThinkGeo.MapSuite
Assembly Version: 10.0.0.0
Win32 Version: 11.0.0-beta059
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/ThinkGeo.MapSuite.DLL
Infragistics4.Win.v17.2
Assembly Version: 17.2.20172.2039
Win32 Version: 17.2.20172.2039
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Infragistics4.Win.v17.2.DLL
Infragistics4.Shared.v17.2
Assembly Version: 17.2.20172.2039
Win32 Version: 17.2.20172.2039
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Infragistics4.Shared.v17.2.DLL
Infragistics4.Win.UltraWinGrid.v17.2
Assembly Version: 17.2.20172.2039
Win32 Version: 17.2.20172.2039
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Infragistics4.Win.UltraWinGrid.v17.2.DLL
Infragistics4.Win.UltraWinStatusBar.v17.2
Assembly Version: 17.2.20172.2039
Win32 Version: 17.2.20172.2039
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Infragistics4.Win.UltraWinStatusBar.v17.2.DLL
Infragistics4.Win.UltraWinTree.v17.2
Assembly Version: 17.2.20172.2039
Win32 Version: 17.2.20172.2039
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Infragistics4.Win.UltraWinTree.v17.2.DLL
Infragistics4.Win.UltraWinTabControl.v17.2
Assembly Version: 17.2.20172.2039
Win32 Version: 17.2.20172.2039
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Infragistics4.Win.UltraWinTabControl.v17.2.DLL
UIAutomationProvider
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll
Infragistics4.Win.UltraWinToolbars.v17.2
Assembly Version: 17.2.20172.2039
Win32 Version: 17.2.20172.2039
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Infragistics4.Win.UltraWinToolbars.v17.2.DLL
Infragistics4.Win.Misc.v17.2
Assembly Version: 17.2.20172.2039
Win32 Version: 17.2.20172.2039
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Infragistics4.Win.Misc.v17.2.DLL
Infragistics4.Win.AppStylistSupport.v17.2
Assembly Version: 17.2.20172.2039
Win32 Version: 17.2.20172.2039
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Infragistics4.Win.AppStylistSupport.v17.2.DLL
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
ThinkGeo.MapSuite.ProductCenter
Assembly Version: 10.0.0.0
Win32 Version: 11.0.0-beta012
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/ThinkGeo.MapSuite.ProductCenter.EXE
System.ComponentModel.Composition
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18060
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18055 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
System.ServiceModel
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18055 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
NetTopologySuite
Assembly Version: 1.14.0.0
Win32 Version: 1.14
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/NetTopologySuite.DLL
GeoAPI
Assembly Version: 1.7.4.0
Win32 Version: 1.7.4.0
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/GeoAPI.DLL
System.Xaml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18015 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
Infragistics4.Win.UltraWinEditors.v17.2
Assembly Version: 17.2.20172.2039
Win32 Version: 17.2.20172.2039
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Infragistics4.Win.UltraWinEditors.v17.2.DLL
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
System.Data.SQLite
Assembly Version: 1.0.108.0
Win32 Version: 1.0.108.0
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/System.Data.SQLite.DLL
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
ThinkGeo.MapSuite.Layers.Adornments
Assembly Version: 10.0.0.0
Win32 Version: 11.0.0-beta007
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/ThinkGeo.MapSuite.Layers.Adornments.DLL
ThinkGeo.MapSuite.Layers.Wms
Assembly Version: 10.0.0.0
Win32 Version: 10.2.3
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/ThinkGeo.MapSuite.Layers.Wms.DLL
ThinkGeo.MapSuite.Styles.ClassBreak
Assembly Version: 10.0.0.0
Win32 Version: 10.2.1
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/ThinkGeo.MapSuite.Styles.ClassBreak.DLL
ThinkGeo.MapSuite.Styles.Value
Assembly Version: 10.0.0.0
Win32 Version: 10.2.1
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/ThinkGeo.MapSuite.Styles.Value.DLL
ThinkGeo.MapSuite.Layers.Printers
Assembly Version: 10.0.0.0
Win32 Version: 10.2.2
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/ThinkGeo.MapSuite.Layers.Printers.DLL
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
UIAutomationTypes
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll
ThinkGeo.MapSuite.Layers.Cad
Assembly Version: 10.0.0.0
Win32 Version: 10.2.2
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/ThinkGeo.MapSuite.Layers.Cad.DLL
ThinkGeo.MapSuite.Wrappers.CadX64
Assembly Version: 10.0.0.0
Win32 Version: 10.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Windows-X64/TeighaCad/ThinkGeo.MapSuite.Wrappers.CadX64.dll
TD_SwigCoreMgd
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Windows-X64/TeighaCad/TD_SwigCoreMgd.DLL
TD_SwigDbMgd
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Pear%20Technology/Pear%20GIS/Windows-X64/TeighaCad/TD_SwigDbMgd.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.