[mapguide-users] View WMS in Maestro - "Object reference not set to
an instance of an object"
johan.asplund at karlstad.se
johan.asplund at karlstad.se
Thu Jul 28 06:46:01 EDT 2011
Hi!
I have a problem to view data from a WMS-service in MapGuide Mastro v 3.5
with MapGuide version 2.2.
I do the following:
1. Add WMS-data source --> test connection (as WMS version 1.1.1): "FDO
Connection Status: True" --> advanced: all layers in this service are
listed
2. Add Raster Layer Definition --> point to the WMS-data source created in
step one and save --> I hit "Preview" and get the following message:
"Object reference is not set to an instance of an obejct"
Details:
System.NullReferenceException: Objektreferensen har inte angetts till en
instans av ett objekt.
vid
OSGeo.MapGuide.ObjectModels.MapDefinition_1_0_0.MapDefinition.OnFirstLayerAdded(MapLayerType
layer) i
d:\Workspace\maestro-3.0\OSGeo.MapGuide.MaestroAPI\ObjectModels\MapDefinition.cs:rad
290
vid
OSGeo.MapGuide.ObjectModels.MapDefinition_1_0_0.MapDefinition.AddLayer(String
groupName, String layerName, String resourceId) i
d:\Workspace\maestro-3.0\OSGeo.MapGuide.MaestroAPI\ObjectModels\MapDefinition.cs:rad
270
vid
Maestro.Base.Editor.ResourcePreviewEngine.GenerateLayerPreviewUrl(IResource
res) i
d:\Workspace\maestro-3.0\Maestro.Base\Editor\ResourcePreviewEngine.cs:rad
73
vid
Maestro.Base.Editor.ResourcePreviewEngine.GeneratePreviewUrl(IResource
res) i
d:\Workspace\maestro-3.0\Maestro.Base\Editor\ResourcePreviewEngine.cs:rad
260
vid Maestro.Base.Editor.EditorContentBase.SetupPreviewUrl(String
mapguideRootUrl) i
d:\Workspace\maestro-3.0\Maestro.Base\Editor\EditorContentBase.cs:rad 255
vid Maestro.Base.Commands.PreviewResourceCommand.Run() i
d:\Workspace\maestro-3.0\Maestro.Base\Commands\PreviewResourceCommand.cs:rad
49
vid ICSharpCode.Core.WinForms.ToolBarCommand.OnClick(EventArgs e)
vid System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
vid System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
vid System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs
e, ToolStripItemEventType met)
vid System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e,
ToolStripItemEventType met)
vid System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
vid System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
vid System.Windows.Forms.Control.WndProc(Message& m)
vid System.Windows.Forms.ScrollableControl.WndProc(Message& m)
vid System.Windows.Forms.ToolStrip.WndProc(Message& m)
vid System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&
m)
vid System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
m)
vid System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
The WMS-service is produced from our ArcGIS Server 10 and works fine in,
for instance, Quantum GIS.
At the same time I am able to view, in Maestro, a WMS-service provided
from a server not controlled by us which makes me think something is wrong
with the configuration of our ArcGIS server??
Any ideas on whats causing this behavior?
Thanks
//Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20110728/e9db204e/attachment.html
More information about the mapguide-users
mailing list