<div>Hi Nicolas,</div>
<div> </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> </div>
<div>thanks a lot.</div>
<div> </div>
<div>zhonghai<br> </div>
<div><span class="gmail_quote">On 5/24/06, <b class="gmail_sendername">Fortin,Nicolas [SteFoy]</b> <<a href="mailto:nicolas.fortin@ec.gc.ca">nicolas.fortin@ec.gc.ca</a>> 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&mode=browse">http://192.168.252.20/cgi-bin/mapserv.exe?map=C:\ms4w\apps\Demo\demo.map&mode=browse
</a> )<br><br>Third, most of the problems with IIS are permissions issues. 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&mode=browse">http://192.168.252.20/cgi-bin/mapserv.exe?map=/ms4w/apps/Demo/demo.map&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 <<a href="mailto:zhonghaiw@gmail.com">zhonghaiw@gmail.com</a>> 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] <<a href="mailto:nicolas.fortin@ec.gc.ca">nicolas.fortin@ec.gc.ca</a> > 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 <<a href="mailto:adams@terrestris.de">adams@terrestris.de</a> > 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>> Hi guys,<br>><br>> I am trying to install MapServer with IIS, and I've done all the
<br>> things following this doc:<br>><br>> <a href="http://mapserver.gis.umn.edu/docs/howto/setupiis/?searchterm=IIS">http://mapserver.gis.umn.edu/docs/howto/setupiis/?searchterm=IIS</a><br>><br>> but there are some problems with the mapfile path configuration, I set
<br>> the paths like this:<br>><br>> 1. IMAGEPATH "C:\ms4w\tmp\ms_tmp\"<br>> IMAGEURL "C:\ms4w\tmp\ms_tmp\"<br>> 2. TEMPLATE "/ms4w/apps/Demo/tmps/demomap.html"<br>> 3. LOG "C:/ms4w/LogFiles/MapServer.log" -- this one works well.
<br>> 4. IMAGE "C:/ms4w/apps/Demo/images/KeyMap.gif" -- for the reference<br>> map (in the Reference object)<br>><br>> the IMAGEURL and IMAGE paths do not work, because the generated map<br>> images, scalebar and reference map are already there,
<br>> and the browser can not find and display them. did I made some<br>> mistakes when I set the paths?<br>><br>> P.S: in the Internet Services Manager I set the ms_tmp and tmp folder<br>> readable and writable.
<br>><br>> thanks for any tips<br>><br>> zhonghai<br><br><br>--<br>******************************************<br>* released: AmeiN! ArcMap-Export-2-UMN *<br>* LiveLinux 'WebGIS on CD' *<br>*
<a href="http://www.terrestris.de">http://www.terrestris.de</a> *<br>******************************************<br><br>------------------------------------------<br><br>Dipl. Geogr. Till Adams<br>terrestris, H. Paulsen& 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>