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: gstandard **
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: gstandard **
Update: Installed 4.9.0 with no problems. There must be an issue with 4.9.1. Could it be that the 4.9.1 version is 64 bit only? This might explain the incompatibility with the other 32 bit activeX control that was being used in the same Winform.