<div>Thanks Michael - that has pointed me in the right direction and I now have a working &quot;Hello World&quot;.</div>
<div> </div>
<div>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.</div>

<div> </div>
<div>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.</div>

<div> </div>
<div>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???</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>Cheers,</div>
<div> </div>
<div>Richard</div>
<div><br><br> </div>
<div class="gmail_quote">On Wed, Nov 18, 2009 at 9:32 PM, Smith, Michael ERDC-CRREL-NH <span dir="ltr">&lt;<a href="mailto:michael.smith@usace.army.mil">michael.smith@usace.army.mil</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><font face="Calibri, Verdana, Helvetica, Arial"><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 
<div class="im"><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<br><br></div>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 
<div class="im"><br> </div></span></font></div></blockquote></div>