[Mapserver-users] Re: I'm not able to solve my problem!!

Ed McNierney ed at topozone.com
Thu May 22 08:22:08 EDT 2003


Did you install zlib.dll in a place on your system PATH?

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
Phone: (978) 251-4242  Fax: (978) 251-1396
ed at topozone.com


-----Original Message-----
From: aborruso at spaziogis.it [mailto:aborruso at spaziogis.it] 
Sent: Thursday, May 22, 2003 4:58 AM
To: mapserver-users; mapserver-users-admin at lists.gis.umn.edu
Subject: RE: [Mapserver-users] Re: I'm not able to solve my problem!!


Daniel,
I have downloaded depends.exe from the web, but I'm not able to
interpret
what I see. Can I send you the file I can export from depends.exe?
Depends.exe give me this warning: "At least one module has an unresolved
import due to a missing export function in a delay-load dependent
module."
I can read this in my IIS log:
"#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2003-05-20 17:48:46
#Fields: time c-ip cs-method cs-uri-stem sc-status
17:48:46 127.0.0.1 GET /cgi-bin/mapserv.exe 502
17:49:08 127.0.0.1 GET /cgi-bin/mapserv.exe 502"

Thank you,

Andrea



|---------+--------------------------------------->
|         |           Daniel Morissette           |
|         |           <morissette at dmsolutions.ca> |
|         |           Inviato da:                 |
|         |           mapserver-users-admin at lists.|
|         |           gis.umn.edu                 |
|         |                                       |
|         |                                       |
|         |           21/05/2003 21.08            |
|         |                                       |
|---------+--------------------------------------->
 
>-----------------------------------------------------------------------
-------------------------------------------------------|
  |
|
  |        Per:     aborruso at spaziogis.it
|
  |        Cc:      mapserver-users <mapserver-users at lists.gis.umn.edu>
|
  |        Oggetto: Re: [Mapserver-users] Re: I'm not able to solve my
problem!!                                                 |
 
>-----------------------------------------------------------------------
-------------------------------------------------------|




aborruso at spaziogis.it wrote:
>
> Hi Daniel,
> thank you. I'll reply to your 3 questions:
>
> 1- What do you get when you run the following in a DOS window?
>      mapserv.exe "QUERY_STRING=map=C:/invalid/path.map"
>
> "<HTML>
> <HEAD><TITLE>MapServer Message</TITLE></HEAD>
> <!-- MapServer version 3.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP
> SUPPO
> RTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT INPUT=EPPL7
> INPUT=
> POSTGIS INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE -->
> <BODY BGCOLOR="#FFFFFF">
> msLoadMap(): Unable to access file. (C:/invalid/path.map)
> </BODY></HTML>"
>


Andrea,

Is this really the output that you get?  There should be some HTTP
headers as well, i.e. you should get:

---------------
Content-type: text/html

<HTML>
<HEAD><TITLE>MapServer Message</TITLE></HEAD>
<!-- MapServer version 3.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP
SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE -->
<BODY BGCOLOR="#FFFFFF">
msLoadMap(): Unable to access file. (C:/invalid/path.map)
</BODY></HTML>
----------------

I just want to confirm that you do indeed get the "Content-type..."
header line in your DOS window output.  There is no reason why you
wouldn't get headers, but if some evil bug slipped into your build and
prevented the headers from being generated then that could possibly
explain all your other problems.  That's why I asked that you quote the
complete output.


> 2- What do you get when you access the following URL via a web bowser?
>      http://localhost/scripts/mapserv.exe
>    (Do a 'View Source' and quote the exact result, also change the URL
>     to match the location of the mapserv.exe script on your server)
>
> "<head><title>Error in CGI Application</title></head>
> <body><h1>CGI Error</h1>The specified CGI application misbehaved by
not
> returning a complete set of HTTP headers.  The headers it did return
> are:<p><p><pre></pre>"
>

OK, so this tells us that the mapserv.exe won't run at all in the
context of your server.  No need to worry about permissions to access
mapfiles and data files at this point, it's a deeper problem.

The only reason I could imagine to explain the lack of headers and error
messages would be that mapserv.exe aborts due to DLL dependency
problems.  Does IIS have any kind of logfile where that kind of error
would be logged?  I don't know IIS enough to tell, but I would hope that
it would have the equivalent of Apache's error_log and there may be
useful hints in there.

You could also try to use the DEPENDS.EXE utility that comes with WinXP
to see the complete list of DLLs required by your mapserv.exe and then
make sure that all the required DLLs are avaialble in the PATH of the
web server user.  (I believe WinXP still uses the PATH to search DLLs,
someone please correct me if I'm wrong.)

If that doesn't help then I'm out of ideas.  The problem you need to
work on is really to get mapserv.exe to work in your web server without
specifying any mapfile parameter.  Then worry about loading a mapfile
etc only once you've got mapserv.exe producing normal errors without any
mapfile specified.

Daniel
--
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users





_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list