<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1476" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Manuel,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have had similar problems using IIS 6 on Windows 
Server 2003. The configuration of IIS is a bit confusing, and I haven't figured 
out the problem yet. Only thing you could check is to make sure that you got 
your execution permissions set up correctly. You may have to add your mapserver 
executable to the pool of programs that is allowed to run on the server, and 
then also specify for each directory that mapserver is allowed to run in there 
(it's kind of doubled-up in IIS). Aside from that it's still a mystery to me. I 
use the a&nbsp;similar configuration on win2k without problems.&nbsp;XP and 2003 
server have a different configuration. Specifying IUSR permissions does not seem 
to suffice.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I would suggest you make your shapepath absolute, 
though. To make sure there is no confusion about relativity to the webroot, or 
the executable path.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>P.S. be aware of the 10 user connection&nbsp;limit 
with IIS, on a non-server version of windows. May be better of using 
apache.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: UMN MapServer 
Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Ed 
McNierney<BR>Sent: 3 December 2004 02:04<BR>To: <A 
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A><BR>Subject: 
Re: [UMN_MAPSERVER-USERS] Win XP and paths in the .map file</FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><BR>You are right in thinking that this is probably a permissions 
problem.<BR>Be sure that the IUSR account has read access to that particular 
file; I<BR>think permission settings are the most common cause of problems 
when<BR>migrating from one machine to another "identical" one.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Separately, it might not be the best idea to store your shapefiles 
in<BR>the wwwroot tree if you want to protect them from being accessed 
outside<BR>of MapServer.&nbsp; It's usually wise to place MapServer's data files 
safely<BR>outside any place that grants access to Web users.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Ed</DIV>
<DIV>&nbsp;</DIV>
<DIV>Ed McNierney<BR>President and Chief Mapmaker<BR>TopoZone.com / Maps a la 
carte, Inc.<BR>73 Princeton Street, Suite 305<BR>North Chelmsford, MA&nbsp; 
01863<BR><A href="mailto:ed@topozone.com">ed@topozone.com</A><BR>(978) 
251-4242&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>-----Original Message-----<BR>From: UMN MapServer Users List 
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On<BR>Behalf Of Manuel Alonso<BR>Sent: 
Thursday, December 02, 2004 11:03 AM<BR>To: <A 
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A><BR>Subject: 
[UMN_MAPSERVER-USERS] Win XP and paths in the .map file</DIV>
<DIV>&nbsp;</DIV>
<DIV>Good afternoon:</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have been running MapServer 4.2.0 in Windows 2K and that works OK. 
I<BR>have copied my application to Windows XP SP2 and configured all 
the<BR>permissions, etc. as I did on Windows 2K, and now it seems 
that<BR>MapServer is unable to read the paths from in the .map file. The 
.map<BR>file contents<BR>are:</DIV>
<DIV>&nbsp;</DIV>
<DIV>NAME satgeobase<BR>&nbsp;SHAPEPATH "shapefiles/satgeobase"<BR>&nbsp;UNITS 
meters<BR>&nbsp;IMAGECOLOR 255 255 255<BR>&nbsp;TRANSPARENT 
ON<BR>&nbsp;SYMBOLSET symbols/symbols.sym</DIV>
<DIV>&nbsp;</DIV>
<DIV>LAYER<BR>&nbsp;DEBUG on<BR>&nbsp;NAME countries<BR>&nbsp;TYPE 
polygon<BR>&nbsp;STATUS ON<BR>&nbsp;DATA "cntry98"</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; CLASS<BR>&nbsp;&nbsp; NAME "Country outline"<BR>&nbsp; COLOR 255 255 
255<BR>&nbsp; OUTLINECOLOR 255 255 0<BR>&nbsp; END<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>If I type the following line in Internet Explorer:</DIV>
<DIV>&nbsp;</DIV>
<DIV><A 
href="http://127.0.0.1/mapserver/mapserv.exe">http://127.0.0.1/mapserver/mapserv.exe</A>?<BR>map=c:\Inetpub\wwwroot\satgeobase.map&amp;mode=map&amp;layer=countries&amp;imgsize=8<BR>00+<BR>400&amp;mapext=-180+90+180+-90</DIV>
<DIV>&nbsp;</DIV>
<DIV>Map Server returns:</DIV>
<DIV>&nbsp;</DIV>
<DIV>msDrawMap(): Image handling error. Failed to draw layer 
named<BR>'countries'.<BR>msSHPOpenFile(): Unable to access file. 
(c:\Inetpub\wwwroot\cntry98)<BR>msSHPOpenFile(): Unable to access 
file.<BR>(c:\Inetpub\wwwroot\shapefiles/satgeobase/cntry98)</DIV>
<DIV>&nbsp;</DIV>
<DIV>If I change the SHAPEPATH line to SHAPEPATH 
"shapefiles\satgeobase\",<BR>then the result is:</DIV>
<DIV>&nbsp;</DIV>
<DIV>msDrawMap(): Image handling error. Failed to draw layer 
named<BR>'countries'.<BR>msSHPOpenFile(): Unable to access file. 
(c:\Inetpub\wwwroot\cntry98)<BR>msSHPOpenFile(): Unable to access 
file.<BR>(c:\Inetpub\wwwroot\shapefiles\satgeobase\cntry98)</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have tried to use double backslash, double forwardslash and 
many<BR>combinations, but it seems that MapServer.exe cannot find the 
shape<BR>files.<BR>The shapefiles exist, names and paths are correct, the 
default firewall<BR>that XP sets up is disabled, and I have even given 
administrative rights<BR>to the IUSR_&lt;&gt; user, just in case. I get the same 
result, the same<BR>answer that MapServer gives when the files do not 
exist.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Does anyone know if this is a known problem? Any ideas?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks very much in advance,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Manuel<BR></FONT></DIV></BODY></HTML>