<font size=2 face="sans-serif">Hi!</font>
<br>
<br><font size=2 face="sans-serif">I have a problem to view data from a
WMS-service in MapGuide Mastro v 3.5 with MapGuide version 2.2.</font>
<br>
<br><font size=2 face="sans-serif">I do the following:</font>
<br><font size=2 face="sans-serif">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</font>
<br>
<br><font size=2 face="sans-serif">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"</font>
<br><font size=2 face="sans-serif">Details:</font>
<br><font size=2 face="sans-serif">System.NullReferenceException: Objektreferensen
har inte angetts till en instans av ett objekt.</font>
<br><font size=2 face="sans-serif"> 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</font>
<br><font size=2 face="sans-serif"> 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</font>
<br><font size=2 face="sans-serif"> vid Maestro.Base.Editor.ResourcePreviewEngine.GenerateLayerPreviewUrl(IResource
res) i d:\Workspace\maestro-3.0\Maestro.Base\Editor\ResourcePreviewEngine.cs:rad
73</font>
<br><font size=2 face="sans-serif"> vid Maestro.Base.Editor.ResourcePreviewEngine.GeneratePreviewUrl(IResource
res) i d:\Workspace\maestro-3.0\Maestro.Base\Editor\ResourcePreviewEngine.cs:rad
260</font>
<br><font size=2 face="sans-serif"> vid Maestro.Base.Editor.EditorContentBase.SetupPreviewUrl(String
mapguideRootUrl) i d:\Workspace\maestro-3.0\Maestro.Base\Editor\EditorContentBase.cs:rad
255</font>
<br><font size=2 face="sans-serif"> vid Maestro.Base.Commands.PreviewResourceCommand.Run()
i d:\Workspace\maestro-3.0\Maestro.Base\Commands\PreviewResourceCommand.cs:rad
49</font>
<br><font size=2 face="sans-serif"> vid ICSharpCode.Core.WinForms.ToolBarCommand.OnClick(EventArgs
e)</font>
<br><font size=2 face="sans-serif"> vid System.Windows.Forms.ToolStripItem.HandleClick(EventArgs
e)</font>
<br><font size=2 face="sans-serif"> vid System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs
e)</font>
<br><font size=2 face="sans-serif"> vid System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs
e, ToolStripItemEventType met)</font>
<br><font size=2 face="sans-serif"> vid System.Windows.Forms.ToolStripItem.FireEvent(EventArgs
e, ToolStripItemEventType met)</font>
<br><font size=2 face="sans-serif"> vid System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs
mea)</font>
<br><font size=2 face="sans-serif"> vid System.Windows.Forms.Control.WmMouseUp(Message&
m, MouseButtons button, Int32 clicks)</font>
<br><font size=2 face="sans-serif"> vid System.Windows.Forms.Control.WndProc(Message&
m)</font>
<br><font size=2 face="sans-serif"> vid System.Windows.Forms.ScrollableControl.WndProc(Message&
m)</font>
<br><font size=2 face="sans-serif"> vid System.Windows.Forms.ToolStrip.WndProc(Message&
m)</font>
<br><font size=2 face="sans-serif"> vid System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&
m)</font>
<br><font size=2 face="sans-serif"> vid System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
m)</font>
<br><font size=2 face="sans-serif"> vid System.Windows.Forms.NativeWindow.Callback(IntPtr
hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</font>
<br>
<br>
<br><font size=2 face="sans-serif">The WMS-service is produced from our
ArcGIS Server 10 and works fine in, for instance, Quantum GIS. </font>
<br>
<br><font size=2 face="sans-serif">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?? </font>
<br>
<br><font size=2 face="sans-serif">Any ideas on whats causing this behavior?</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br>
<br><font size=2 face="sans-serif">//Johan</font>