<div>Hi Nicolas,</div>
<div>&nbsp;</div>
<div>I've fixed the CGI error, because I need another DLL for my system to run MapServer : MSVCR71.DLL, which is not available for every Windows system.</div>
<div>&nbsp;</div>
<div>thanks a lot.</div>
<div>&nbsp;</div>
<div>zhonghai<br>&nbsp;</div>
<div><span class="gmail_quote">On 5/24/06, <b class="gmail_sendername">Fortin,Nicolas [SteFoy]</b> &lt;<a href="mailto:nicolas.fortin@ec.gc.ca">nicolas.fortin@ec.gc.ca</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Zhongai,<br><br>First, open a command window type mapserver -v<br>You should get something like<br>MapServer version 
4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
<br><br>Second, try to use a complete windows path for your map parameter (ex:<a href="http://192.168.252.20/cgi-bin/mapserv.exe?map=C:\ms4w\apps\Demo\demo.map&amp;mode=browse">http://192.168.252.20/cgi-bin/mapserv.exe?map=C:\ms4w\apps\Demo\demo.map&amp;mode=browse
</a> )<br><br>Third, most of the problems with IIS are permissions issues.&nbsp;&nbsp;Run filemon (<a href="http://www.sysinternals.com/Utilities/Filemon.html">http://www.sysinternals.com/Utilities/Filemon.html</a>) while trying to access your map and search for ACCESS DENIED in the result column.
<br><br>Hope this helps,<br>Nicolas<br><br><br>-----Message d'origine-----<br>De : Zhonghai Wang [mailto:<a href="mailto:zhonghaiw@gmail.com">zhonghaiw@gmail.com</a>]<br>Envoyé : 24 mai 2006 13:15<br>À : Fortin,Nicolas [SteFoy]
<br>Objet : Re: RE : [UMN_MAPSERVER-USERS] mapfile configuration problem -- MapServer for IIS<br><br><br>Hi guys,<br><br>here is some info about my system:<br><br>Windows 2003<br>IIS 6<br>MS4W 4.8.1<br><br>there is no problem to open the normal web page now, such as the index page. But if I am trying to get a map from the server using the following URL:
<br><br><a href="http://192.168.252.20/cgi-bin/mapserv.exe?map=/ms4w/apps/Demo/demo.map&amp;mode=browse">http://192.168.252.20/cgi-bin/mapserv.exe?map=/ms4w/apps/Demo/demo.map&amp;mode=browse</a><br><br>then the CGI error comes. I've read the previously posted messages, and the same CGI error occurred also for the old mapserver version. I am trying to fix my problem in the same way as given in those messages, but this still does not work.
<br><br>wondering how to fix it. Any ideas?<br><br>thanks<br><br>zhonghai<br><br>On 5/24/06, Zhonghai Wang &lt;<a href="mailto:zhonghaiw@gmail.com">zhonghaiw@gmail.com</a>&gt; wrote:<br>Hi Nicolas,<br><br>thanks so much for your info. After I enabled the CGI extension, it works well. But if I tried to open the application using this url:
<br><br><a href="http://192.168.252.20/cgi-bin/mapserv.exe?map=/ms4w/apps/Demo/demo.map">http://192.168.252.20/cgi-bin/mapserv.exe?map=/ms4w/apps/Demo/demo.map</a><br><br>the application can not be opened, the following error message is returned instead:
<br><br>***<br>CGI Error<br>The specified CGI application misbehaved by not returning a complete set of HTTP headers.<br>****<br><br>I am a newbie in Windows server things, I very appreciate it if you light me a little bit more.
<br><br>zhonghai<br><br>On 5/24/06, Fortin,Nicolas [SteFoy] &lt;<a href="mailto:nicolas.fortin@ec.gc.ca">nicolas.fortin@ec.gc.ca</a> &gt; wrote:<br>Hi<br><br>Did you enabled CGI extensions in IIS? If not, you can do this in the IIS Manager under the Web Services Extensions folder.
<br><br>Nicolas<br>-----Message d'origine-----<br>De : UMN MapServer Users List [mailto: <a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</a>] De la part de Zhonghai Wang<br>Envoyé : 24 mai 2006 11:19
<br>À : <a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</a><br>Objet : Re: [UMN_MAPSERVER-USERS] mapfile configuration problem -- MapServer for IIS<br><br><br>thanks guys, after I set the imageurl as 
<a href="http://localhost/ms_tmp">http://localhost/ms_tmp</a>, MapServer works well again. URL should be a real URL, that's it.<br><br>I am trying now to install MapServer with IIS 6 on Windows 2003, the same configurations as on WinXP do not work on Windows 2003 any more, and I can not even open the mapserver initial page.
<br><br>I've searched in our list achieves, somebody says that there may be some problems with IIS 6, but I still can not figure out where the problem is.<br><br>could anyone give me clues?<br><br>thanks for any tips.<br>
<br>zhonghai<br><br>On 5/24/06, Till Adams &lt;<a href="mailto:adams@terrestris.de">adams@terrestris.de</a> &gt; wrote:<br>Zhongai,<br><br>your imageurl should be an URL, not a path, e.g.<br><br><a href="http://localhost/ms_tmp">
http://localhost/ms_tmp</a><br><br>Leave the last slash in your imagepath. It is also ok only to use<br>forward slashes.<br><br>Cheers, Till<br><br>Zhonghai Wang schrieb:<br><br>&gt; Hi guys,<br>&gt;<br>&gt; I am trying to install MapServer with IIS, and I've done all the
<br>&gt; things following this doc:<br>&gt;<br>&gt; <a href="http://mapserver.gis.umn.edu/docs/howto/setupiis/?searchterm=IIS">http://mapserver.gis.umn.edu/docs/howto/setupiis/?searchterm=IIS</a><br>&gt;<br>&gt; but there are some problems with the mapfile path configuration, I set
<br>&gt; the paths like this:<br>&gt;<br>&gt; 1. IMAGEPATH &quot;C:\ms4w\tmp\ms_tmp\&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEURL &quot;C:\ms4w\tmp\ms_tmp\&quot;<br>&gt; 2. TEMPLATE &quot;/ms4w/apps/Demo/tmps/demomap.html&quot;<br>&gt; 3. LOG &quot;C:/ms4w/LogFiles/MapServer.log&quot; -- this one works well.
<br>&gt; 4. IMAGE &quot;C:/ms4w/apps/Demo/images/KeyMap.gif&quot; -- for the reference<br>&gt; map (in the Reference object)<br>&gt;<br>&gt; the IMAGEURL and IMAGE paths do not work, because the generated map<br>&gt; images, scalebar and reference map are already there,
<br>&gt; and the browser can not find and display them. did I made some<br>&gt; mistakes when I set the paths?<br>&gt;<br>&gt; P.S: in the Internet Services Manager I set the ms_tmp and tmp folder<br>&gt; readable and writable.
<br>&gt;<br>&gt; thanks for any tips<br>&gt;<br>&gt; zhonghai<br><br><br>--<br>******************************************<br>*&nbsp;&nbsp;released: AmeiN! ArcMap-Export-2-UMN&nbsp;&nbsp;*<br>*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LiveLinux 'WebGIS on CD'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<br>*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<a href="http://www.terrestris.de">http://www.terrestris.de</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<br>******************************************<br><br>------------------------------------------<br><br>Dipl. Geogr. Till Adams<br>terrestris, H. Paulsen&amp; T. Adams GbR
<br>Siemensstr. 8 * 53121 Bonn<br>Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57<br><a href="mailto:info@terrestris.de">info@terrestris.de</a> * <a href="http://www.terrestris.de">http://www.terrestris.de</a><br></blockquote>
</div><br>