<div>Thanks David &amp; Michael,</div>
<div> </div>
<div>I already had the extra &quot;END&quot; at the end of my map files.  It was the initial &quot;MAP&quot; which I was missing (probably because I created these files initially from Bill Kropla&#39;s book - and that how he has coded his map files).</div>

<div> </div>
<div>Adding the initial &quot;MAP&quot; fixed all my map applications - they&#39;re now all back to normal.</div>
<div> </div>
<div>It turns out my &quot;back to basics&quot; Hello World made the problem more involved as there are other template-related changes, and my actual map applications work as WMS servers rather than map templates.</div>
<div> </div>
<div> </div>
<div>Thanks everyone!</div>
<div> </div>
<div>Cheers,</div>
<div> </div>
<div>Richard<br><br></div>
<div class="gmail_quote">On Thu, Nov 19, 2009 at 8:26 AM, Fawcett, David (MPCA) <span dir="ltr">&lt;<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt">If you still get an error, you will want to make sure that your MAP has an associated END line to close out the MAP block.  It will likely be the last line in your map file.</span></p>

<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt"> </span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt">David.</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt"> </span></p>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<p class="MsoNormal"><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>Richard Marsden<br>
<b>Sent:</b> Thursday, November 19, 2009 8:13 AM<br><b>To:</b> Smith, Michael ERDC-CRREL-NH; <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br><b>Subject:</b> Re: [mapserver-users] Build Errors; Currently &quot;msLoadMap(): Unknown identifier. First token must be MAP, this doesn&#39;t look like a mapfile. &quot;</span></p>
</div>
<div>
<div></div>
<div class="h5">
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Thanks Michael - that has pointed me in the right direction and I now have a working &quot;Hello World&quot;.</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">I had already tried the &quot;MAP&quot; on the first line, but this was giving a parsing error on line 1. I assumed this referred to the &quot;MAP&quot; in the map file, but it was actually due to a lack of the &quot;magic string&quot; in the template.</p>
</div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">Even with those two changes there was another error on &quot;line 1&quot;. This was actually due to the form field for &quot;map_web_imagepath&quot;. Commenting it out resulted in a working Hello World template.  Luckily it quoted the problem (the directory value), but saying &quot;Line 1&quot; was very misleading for this error.</p>
</div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">As a general comment:  With hindsight, these errors make some sense, but it is very confusing as to know where (ie. which file) is causing the error. &quot;Line 1&quot; is very well, but which file???</p>
</div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">Now to convert the application map files. Hopefully I just need to add the &quot;MAP&quot;s at the top. I&#39;ll check the symbol defs as well.</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">Cheers,</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">Richard</p></div>
<div>
<p class="MsoNormal"><br><br> </p></div>
<div>
<p class="MsoNormal">On Wed, Nov 18, 2009 at 9:32 PM, Smith, Michael ERDC-CRREL-NH &lt;<a href="mailto:michael.smith@usace.army.mil" target="_blank">michael.smith@usace.army.mil</a>&gt; wrote:</p>
<div>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt">Richard,<br><br>Add a new line to the beginning of your mapfile of just the word MAP.<br><br>Eg <br>MAP </span></p>
<div>
<p style="MARGIN-BOTTOM: 12pt" class="MsoNormal"><span style="FONT-SIZE: 11pt"><br>NAME &quot;Hello_World&quot;<br>SIZE 400 300<br>IMAGECOLOR 249 245 186<br>IMAGETYPE png<br>EXTENT -1.00 -1.00 1.00 1.00</span></p></div>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt">Its part of some security changes in the latest version of Mapserver. You also need to add a SYMBOLSET to the top of symbol files and a new magic token to templates<br><br>
See here<br><a href="http://mapserver.org/development/rfc/ms-rfc-56.html" target="_blank">http://mapserver.org/development/rfc/ms-rfc-56.html</a><br>For more info<br><br>Mike<br><br><br>-- <br>Michael Smith<br>RSGIS Center<br>
US Army Corps of Engineers </span></p>
<div>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt"><br> </span></p></div></div></div></div></div></div></div></blockquote></div><br>