Hi,
We have a message error like this :
Message : DataReader.GetFieldType(13) a retourné la valeur null.
Exception type : System.InvalidOperationException
Failed method : ThinkGeo.MapSuite.Wpf.Tile.DrawException
Problem Id : System.InvalidOperationException at ThinkGeo.MapSuite.Wpf.Tile.DrawException
Assembly : ThinkGeo.MapSuite.Wpf, Version=10.0.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207
StackTrace :
System.InvalidOperationException:
at ThinkGeo.MapSuite.Wpf.Tile.DrawException (ThinkGeo.MapSuite.Wpf, Version=10.0.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207)
at ThinkGeo.MapSuite.Wpf.Tile.Draw (ThinkGeo.MapSuite.Wpf, Version=10.0.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207)
at ThinkGeo.MapSuite.Wpf.LayerOverlay.DrawTileCore (ThinkGeo.MapSuite.Wpf, Version=10.0.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207)
at ThinkGeo.MapSuite.Wpf.TileOverlay.DrawTile (ThinkGeo.MapSuite.Wpf, Version=10.0.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207)
at ThinkGeo.MapSuite.Wpf.TileOverlay.DrawCore (ThinkGeo.MapSuite.Wpf, Version=10.0.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207)
at ThinkGeo.MapSuite.Wpf.Overlay.Draw (ThinkGeo.MapSuite.Wpf, Version=10.0.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207)
This error occurs when instantiating a new MsSql2008FeatureLayer layer.
This error is related to the particular case of an MsSql2008FeatureLayer corresponding to a tablename = a view.
Ex : layer.TableName = coucheSql.Table; (layerSql.Table is the name of a view in our database)
In our project, we instantiate other layers of MsSql2008FeatureLayer type which is not a problem, but these layers rely on sql tables and not views
Note that DataReader.GetFieldType (13) is the Geometry column of the view.
Have you ever encountered this kind of problem ?
The difficulty is that this error message only appears on some PCs and on others, it works fine ;-(
Thanks
Regards.
Steph.