<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi All,<br>
<br>
I am stuck in one position, hope I will get solution from here.<br>
<br>
I am calling Map server layer with help of Sharpmap WMS client, I have<br>
created two layers, one is of Shrapmap layers and second one is of Map<br>
server layer, I am using below Map file to accomplish this<br>
<br>
MAP<br>
<br>
NAME GMAP_DEMO<br>
STATUS ON<br>
SIZE 400 300<br>
SYMBOLSET ../etc/symbols.txt<br>
SHAPEPATH &quot;../data&quot;<br>
IMAGECOLOR 255 0 0<br>
FONTSET ../etc/fonts.txt<br>
UNITS DD<br>
EXTENT   -180 -90 180 90 # Geographic<br>
CONFIG &quot;PROJ_LIB&quot; &quot;C:/ms4w/apps/gmap/proj/nad/epsg&quot;<br>
TRANSPARENT off<br>
<br>
<br>
#<br>
# Start of web interface definition<br>
#<br>
WEB<br>
<br>
#<br>
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root<br>
# of the drive where the .MAP file resides.<br>
#<br>
 IMAGEPATH &quot;C:/ms4w/tmp/ms_tmp/&quot;<br>
 IMAGEURL &quot;/ms_tmp/&quot;<br>
<br>
 METADATA<br>
       &quot;wms_srs&quot;  &quot;EPSG:4326&quot;<br>
 END<br>
END<br>
<br>
<br>
#<br>
# Start of layer definitions<br>
#<br>
<br>
<br>
LAYER<br>
PROJECTION<br>
 &quot;proj=latlong&quot;<br>
 &quot;ellps=WGS84&quot;<br>
END<br>
   NAME   &quot;world_poly&quot;<br>
   DATA         &#39;C:/ms4w/apps/gmap/shapefile/world_adm0.shp&#39;<br>
       STATUS       ON<br>
   TYPE         POLYGON<br>
   CLASS<br>
       NAME       &#39;The World&#39;<br>
       STYLE<br>
           OUTLINECOLOR    0 0 0<br>
       END<br>
   END<br>
END # layer<br>
<br>
<br>
END # Map File<br>
<br>
<br>
and I am calling this above map by my WMS client here is my WMS clint<br>
<br>
string wmsUrl =<br>
&quot;<a href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/gmap/htdocs/gmap_modified.map" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/gmap/htdocs/gmap_modified.map</a>&quot;;<br>
               WmsLayer layWms = new WmsLayer(&quot;GMAP_DEMO&quot;, wmsUrl);<br>
               layWms.AddLayer(&quot;world_poly&quot;);<br>
               layWms.SetImageFormat(layWms.OutputFormats[1]);<br>
               //Map Server Transparancy<br>
               layWms.Transparancy = false;<br>
               layWms.SetImageFormat(&quot;image/png&quot;);<br>
               layWms.ContinueOnError = false;<br>
               layWms.BgColor = System.Drawing.Color.Red;<br>
               layWms.Enabled = true;<br>
               //Set timeout to 5 seconds<br>
               layWms.TimeOut = 5000;<br>
<br>
               //Map Server Projection ID<br>
               layWms.SRID = 4326;<br>
               map.Layers.Add(layWms);<br>
<br>
The problem is this not showing any map, only blank screen is coming.<br>
<br>
Please guide me to do this.<br>
<br>
Thanks,<br>
Vivek<br></blockquote></div>