Today we upgraded to TG 14.5.0 and when I try to add a SqlServerFeatureLayer I get an exception from the method GetFirstGeometryType(). We did make the call to the Open() method before calling GetFirstGeometryType(). Here is the exception:
Exception Source: ThinkGeo.Core
Exception Type: System.InvalidOperationException
Exception Message: The FeatureSource is not open. Please call the Open method before calling this method.
Exception Target Site: CheckFeatureSourceIsOpen
---- Stack Trace ----
ThinkGeo.Core.ValidatorHelper.CheckFeatureSourceIsOpen(isOpen As Boolean)
GeoSuite.exe: N 00070
ThinkGeo.Core.SqlServerFeatureSource.GetFirstGeometryType()
GeoSuite.exe: N 00064
MapUtilities.CustomSQLFeatureLayer.get_ShapeType()
CustomSQLFeatureLayer.vb: line 0400, col 09, IL 0037
MapUtilities.CustomSQLFeatureLayer.SetDefaultDisplayStyle(oLayerStyle As Style)
CustomSQLFeatureLayer.vb: line 0554, col 09, IL 0003
MapUtilities.VB$StateMachine_5_AddSQLFeatureLayers.MoveNext()
LayerUtils.vb: line 0357, col 17, IL 3123
Can you tell me what the problem is?
Thanks!
Steve