MapServer 4.4.1 Demo

Brent Fraser bfraser at GEOANALYTIC.COM
Wed Mar 9 11:16:29 EST 2005


Christine,

  In your first example it appears that mapserver was reading the map file but crashed for some reason.  In the second example it couldn't find the map file because it expects a file system path not a url.  So the first example is good, but the second is not (mapserver just handled the second case a lot better!).

The crash is likely due to a missing dll required by mapserver.  

You can run mapserv.exe from the command line to get messages about missing dlls.  Here are the steps:

1. Open a command prompt window on your server
2. cd to the location of mapserv.exe
3. type in
        mapserv QUERY_STRING="

4. Copy the query string from the your browser address bar  and paste it into the command window.  The query string should look like:

layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fworkshop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&map_web_template=itasca_basic.html

5. Add a double quote to the end of the string and press return.

If a dll is missing, the operating system will show a dialog box giving the name of the dll.

Brent Fraser



  ----- Original Message ----- 
  From: Lisi, Christine 
  To: MAPSERVER-USERS at LISTS.UMN.EDU 
  Sent: Wednesday, March 09, 2005 8:31 AM
  Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo


  I've installed MapServer and successfully received the "No query information to decode.  QUERY_STRING is set, but empty." message.  Now I am trying to get the MapServer 4.4.1 Demo to work.  (Windows Server 2003, IIS6, MapServer 4.4.1)

   

  Here are the steps I have taken:

   

  1.       Copied the WORKSHOP folder to C:\Inetpub\wwwroot

  2.       Created a tmp folder inside C:\Inetpub\wwwroot\workshop and gave the IUSR account Read/Write/Execute permissions

  3.       Set default page to INDEX.HTML in IIS

  4.       Changed Execute Permissions in IIS to allow SCRIPTS and EXECUTABLES.

  5.       Edited INDEX.HTML file as follows (edits in bold):

   

  <!-- EDIT THE FORM ACTION -->

  <form name="demo" method="GET" action="http:\\esgisrv001\cgi-bin\mapserv.exe" onSubmit="submit_form()">

   

        <input type="hidden" name="layer" value="lakespy2">

        <input type="hidden" name="layer" value="dlgstln2">

        <input type="hidden" name="zoomsize" value=2>

   

        <!-- EDIT THESE HIDDEN VARIABLES -->

        <input type="hidden" name="map" value="C:\Inetpub\wwwroot\workshop\itasca.map">

        <input type="hidden" name="program" value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe">

        <input type="hidden" name="root" value="C:\Inetpub\wwwroot\workshop\">

        <input type="hidden" name="map_web_imagepath" value="C:\Inetpub\wwwroot\workshop\tmp\">

        <input type="hidden" name="map_web_imageurl" value="C:\Inetpub\wwwroot\workshop\tmp\">

   

  I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error:

  CGI Error

  The specified CGI application misbehaved by not returning a complete set of HTTP headers.

   

  6.       Edited INDEX.HTML file as follows (edits in bold):

   

  <!-- EDIT THE FORM ACTION -->

      <form name="demo" method="GET" action="http:\\esgisrv001\cgi-bin\mapserv.exe" onSubmit="submit_form()">

   

        <input type="hidden" name="layer" value="lakespy2">

        <input type="hidden" name="layer" value="dlgstln2">

        <input type="hidden" name="zoomsize" value=2>

   

        <!-- EDIT THESE HIDDEN VARIABLES -->

        <input type="hidden" name="map" value="http:\\esgisrv001\workshop\itasca.map">

        <input type="hidden" name="program" value="http:\\esgisrv001\cgi-bin\mapserv.exe">

        <input type="hidden" name="root" value="http:\\esgisrv001\workshop\">

        <input type="hidden" name="map_web_imagepath" value="http:\\esgisrv001\workshop\tmp\">

        <input type="hidden" name="map_web_imageurl" value="http:\\esgisrv001\workshop\tmp\">

   

  I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error:

   

  msLoadMap(): Unable to access file. (http:\\esgisrv001\workshop\itasca.map)

   

  Can anyone help?

   

  Thanks.

  Christine Lisi
  Application Specialist

  Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444

  Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com

   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050309/d7837baa/attachment.html


More information about the mapserver-users mailing list