Hello,
I am trying to add the NoaaWeatherWarningsFeatureLayer to our map. On my development machine, everything runs as expected. However, when our program is installed on a user’s machine, and they try to access the layer, we have issues. First, the layer does not appear. Then, as soon as the user moves their mouse, the following error occurs:
System.InvalidOperationException: The projection is not open. Please open it before calling this method.
at ThinkGeo.MapSuite.Core.Projection.ConvertToInternalProjection(RectangleShape rectangleShape)
at ThinkGeo.MapSuite.Core.FeatureSource.ConvertToInternalProjection(RectangleShape rectangle)
at ThinkGeo.MapSuite.Core.FeatureSource.GetFeaturesForDrawing(RectangleShape boundingBox, Double screenWidth, Double screenHeight, IEnumerable1 returningColumnNames) at ThinkGeo.MapSuite.Core.FeatureLayer.DrawCore(GeoCanvas canvas, Collection
1 labelsInAllLayers)
at ThinkGeo.MapSuite.Core.Layer.Draw(GeoCanvas canvas, Collection1 labelsInAllLayers) at ThinkGeo.MapSuite.DesktopEdition.LayerOverlay.DrawCore(GeoCanvas canvas) at ThinkGeo.MapSuite.DesktopEdition.Overlay.4BQ=(GeoCanvas canvas) at ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas canvas) at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.qRU=(IEnumerable
1 drawingOverlays, RectangleShape extent)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.qBU=(RectangleShape drawingExtent, RectangleShape extent)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.0hU=(IEnumerable`1 drawingOverlays)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.yRU=(RectangleShape extent)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.wBU=(InteractionArguments interactionArguments)
at ThinkGeo.MapSuite.DesktopEdition.MouseEventAnalyzer.OnMouseEvent(OxY= e)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.vxU=(Object sender, MouseEventArgs e)
at System.Windows.Forms.MouseEventHandler.Invoke(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.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)
What could be happening on the user machine that is causing this? Why is it working on my development machine, but not user machines?
Thanks,
Dib