WMS service not adding to the map in Silverlight

Discussion created by santoshf2 on Feb 28, 2013
Latest reply on Mar 11, 2013 by santoshf2
I have created a MapService on ArcGIS Server 10 and enabled the  WMS capability
and wrote a code to add this WMS service on my Silverlight 4 map application but it does not add the service, the map is not visible, but when I add the WMS url in ArcMAP I can view the map
Please comment what am I missing here?
Code goes here

            ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer newLayer = new ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer();
            newLayer.Url = "http://dev9/arcgis/services/merged_soi1/MapServer/WMSServer";
            newLayer.ID = "newLayer1";
            newLayer.SkipGetCapabilities = true;