<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html><head><meta http-equiv="Content-Type" content="text/html;charset=us-ascii">
<style>BODY{font:10pt Tahoma, Verdana, sans-serif}</style></head><body>
Just as the error says: you have to include the "layer" parameter, instead of the "layerS" parameter. So change layers to layer and you should be fine.<br><br>Met vriendelijke groet,<br><br>Meine Toonen<br>B3Partners BV<br>Tel: 030 214 2083<br><blockquote style="padding-left: 5px; margin-left: 5px; border-left: #0000ff 2px solid; margin-right: 0px"><hr><b>From:</b> Tonton [mailto:to.tonton@gmail.com]<br><b>To:</b> mapserver-users [mailto:mapserver-users@lists.osgeo.org]<br><b>Sent:</b> Wed, 14 Sep 2011 16:57:20 +0200<br><b>Subject:</b> [mapserver-users] GetLegendGraphic with SLD missing mandatroy layer        parameter<br><br>hello <br>i try to obtain legendgraphic from mapserv with a sld definition but it seems i forgot a parameter in my request <br><br><a href="http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/mapfile/29411.map&amp;SLD=http://192.168.12.60/media/sld/29411.sld&amp;LAYERS=29411&amp;FORMAT=image/png&amp;TRANSPARENT=true&amp;VISIBILITY=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetLegendGraphic&amp;LAYERS=29411&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG%3A4326&amp;BBOX=4.760774711589825,45.72893975925065,4.974066894457241,45.78262308062963&amp;WIDTH=200&amp;HEIGHT=100">http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/mapfile/29411.map&amp;SLD=http://192.168.12.60/media/sld/29411.sld&amp;LAYERS=29411&amp;FORMAT=image/png&amp;TRANSPARENT=true&amp;VISIBILITY=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetLegendGraphic&amp;WIDTH=200&amp;HEIGHT=100</a><br>
<br>WMS server error. Mandatory LAYER&nbsp; parameter missing in GetLegendGraphic request <br><br>does someone know about it ? <br><br>regards<br><br>T.<br>
</blockquote><style>
</style>
</body></html>