I have this same problem, only I am using a Silverlight client to view the layers. I can view layers only by setting their status to DEFAULT.  Whenever I request a layer whose status is ON, I get the response:<br><br><div style="margin-left: 40px;">

<span style="font-family: courier new,monospace;">Invalid CRS given : CRS must be valid for all requested layers.</span></div><br>The CRS query string I passed is: <span style="font-family: courier new,monospace;"><br><br>

</span><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">&amp;CRS=EPSG:4326</span><br></div><br>The projection in my mapfile both for the whole map and individual layers is:<br><br><div style="margin-left: 40px;">

<span style="font-family: courier new,monospace;">PROJECTION</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  &quot;proj=longlat&quot;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  &quot;ellps=WGS84&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  &quot;datum=WGS84&quot;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  &quot;no_defs&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">END</span><br><br></div><div style="text-align: left;">

<font face="arial,helvetica,sans-serif">It looks like the problem is in referencing the EPSG file, and I have tried every method I know to reference it: <br></font><ol><li><font face="arial,helvetica,sans-serif">setting <span style="font-family: courier new,monospace;">CONFIG &quot;PROJ_LIB&quot; &quot;C:/ms4w/proj/nad/&quot;</span> at the top of my mapfile</font></li>

<li><font face="arial,helvetica,sans-serif">adding the line <span style="font-family: courier new,monospace;">SetEnv PROJ_LIB &quot;c:/ms4w/proj/nad/&quot;</span> to Apache&#39;s httpd.conf file</font></li><li><font face="arial,helvetica,sans-serif">doing 1 and 2 but omitting the leading &quot;c:&quot;<br>

</font></li></ol>Further confirmation that this is the problem is that I tried to set the map&#39;s projection in MapScript using the line <br><br><div style="margin-left: 40px; font-family: courier new,monospace;">mapObj.setProjection(&quot;init=epsg:4326&quot;);<br>

</div><div style="font-family: courier new,monospace;"><br><font face="arial,helvetica,sans-serif">and received the PROJ4 error:<br><br></font><div style="margin-left: 40px;"><font face="arial,helvetica,sans-serif"><span style="font-family: courier new,monospace;">msProcessProjection(): Projection library error. No such file or directory</span></font><br>

<br></div><span style="font-family: arial,helvetica,sans-serif;">Any ideas out there?</span><br></div><div style="margin-left: 40px; font-family: courier new,monospace;"><br></div></div><blockquote style="margin: 1.5em 0pt;">

<div style="border: 1px solid black; padding: 5px; font-family: tahoma; font-size: 8pt; font-weight: bold; width: 150px;">
Dan Walton<br>
<a href="mailto:dgwalton@gmail.com">dgwalton@gmail.com</a>
</div></blockquote><br><br><div class="gmail_quote">On Mon, Oct 5, 2009 at 8:49 AM,  <span dir="ltr">&lt;<a href="mailto:jbloc1878@googlemail.com">jbloc1878@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div bgcolor="#FFFFFF"><div>Thanks for the response. I am using openlayers and my map does not appear unless layer is STATUS DEFAULT.</div><div><br></div><div>I call layer as follows <span><span></span></span></div><div>
<span><br>
</span></div><div><span><span>layer1 = new OpenLayers.Layer.WMS(&quot;OpenLayers WMS&quot;,</span><div>      &quot;<a href="http://localhost/cgi-bin/mapserv.exe" target="_blank"></a><a href="http://localhost/cgi-bin/mapserv.exe" target="_blank">http://localhost/cgi-bin/mapserv.exe</a>?&quot;, { layers: &quot;testlayer&quot;, map: &#39;/ms4w/.../data/tr00.map&#39;,<br>

      gutter: 15, minZoomLevel: 1, maxZoomLevel: 10, units:&#39;meters&#39; });</div><div> <span></span></div><div><span> map.addLayer(layer1);</span></div><div><span><br></span></div><div><span>I only view pink tiles when STATUS ON?</span></div>

</span><br>Thanks </div><div><div></div><div class="h5"><div><br>On 5 Oct 2009, at 14:40, &quot;Fawcett, David&quot; &lt;<a href="mailto:David.Fawcett@state.mn.us" target="_blank">David.Fawcett@state.mn.us</a>&gt; wrote:<br>

<br></div><div></div><blockquote type="cite"><div>

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">You don’t.  That is how you tell MapServer that you want to view
a particular layer that doesn’t have a status of default.  </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">In many cases, if you are viewing your map using a client like
OpenLayers, the client does this for you.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">David.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>
[mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b><a href="mailto:jbloc1878@googlemail.com" target="_blank">jbloc1878@googlemail.com</a><br>


<b>Sent:</b> Monday, October 05, 2009 8:31 AM<br>
<b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> [mapserver-users] Call layer</span></p>

</div>

</div>

<p> </p>

<div>

<p><span><span style="font-size: 10pt;">Hi,</span></span></p>

</div>

<div>

<p><span style="font-size: 10pt;"><br>
<br>
</span></p>

</div>

<div>

<p><span><span style="font-size: 10pt;">If
 the status of my layer is set to ON how do I call the layer without
adding &#39;&amp;layer=[layername]&#39; on the end of the URL?</span></span></p>

</div>

<div>

<p><span style="font-size: 10pt;"><br>
<br>
</span></p>

</div>

<div>

<p><span><span style="font-size: 10pt;">I
am viewing the map via localhost/cgi-bin/mapserv.exe?  </span></span></p>

</div>

<div>

<p><span><span style="font-size: 10pt;"> </span></span></p>

</div>

<div>

<p style="margin-bottom: 12pt;"><span><span style="font-size: 10pt;">Cheers for any help</span></span><br>
<br>
</p>

</div>

</div>




</div></blockquote></div></div></div><br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>