The new version of MapWinGIS ActiveX 4.9 prevents another ActiveX control from being added to a WinForm. Specifically, when the TerraExplorer ActiveX control is added, it throws and error. However, if you remove all references to the MapWinGIS Active control, and delete the interop libraries, then the other control can be added.
Similarly, if you reverse the order of adding the controls to a WinForm, the error occurs with the control that is added secondly. Each control can be added separately, but not together on the same form. Is there some type of naming conflict or COM interface collision? Prior to version 4.9, but controls performed side-by-side with no errors. So - now my project is dead in the water....bad luck for me - I gambled with the new version and lost :). The error states:
---------------------------
Microsoft Visual Studio
---------------------------
Failed to create component 'AxHost'. The error message follows:
'System.Runtime.InteropServices.COMException (0x8007007F): The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)
at System.Windows.Forms.Design.DocumentDesigner.AxToolboxItem.CreateComponentsCore(IDesignerHost host)
at System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesignerHost host, IDictionary defaultValues)
at System.Drawing.Design.ToolboxItem.CreateComponents(IDesignerHost host, IDictionary defaultValues)
at System.Windows.Forms.Design.OleDragDropHandler.CreateTool(ToolboxItem tool, Control parent, Int32 x, Int32 y, Int32 width, Int32 height, Boolean hasLocation, Boolean hasSize, ToolboxSnapDragDropEventArgs e)'
---------------------------
OK
---------------------------
Comments: ** Comment from web user: pmeems **
Similarly, if you reverse the order of adding the controls to a WinForm, the error occurs with the control that is added secondly. Each control can be added separately, but not together on the same form. Is there some type of naming conflict or COM interface collision? Prior to version 4.9, but controls performed side-by-side with no errors. So - now my project is dead in the water....bad luck for me - I gambled with the new version and lost :). The error states:
---------------------------
Microsoft Visual Studio
---------------------------
Failed to create component 'AxHost'. The error message follows:
'System.Runtime.InteropServices.COMException (0x8007007F): The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)
at System.Windows.Forms.Design.DocumentDesigner.AxToolboxItem.CreateComponentsCore(IDesignerHost host)
at System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesignerHost host, IDictionary defaultValues)
at System.Drawing.Design.ToolboxItem.CreateComponents(IDesignerHost host, IDictionary defaultValues)
at System.Windows.Forms.Design.OleDragDropHandler.CreateTool(ToolboxItem tool, Control parent, Int32 x, Int32 y, Int32 width, Int32 height, Boolean hasLocation, Boolean hasSize, ToolboxSnapDragDropEventArgs e)'
---------------------------
OK
---------------------------
Comments: ** Comment from web user: pmeems **
Both v4.9.0 and v4.9.1 are 32-bit only. We've not yet created the 64-bit installers.
The difference between the two versions is that the latest version used the pre-build binaries of GDAL, GEOS, PROJ4, etc. Did you copy those dlls to the location of your executable?
Is the TerraExplorer ActiveX control for free? I'm not familiar with it. If I can download it somewhere we can try to debug.
Thanks,
Paul