[Geomoose-users] Problem using Firefox Page Info to debug Mapfile
Jim Klassen
klassen.js at gmail.com
Fri Jun 29 18:14:51 PDT 2012
The browser doesn't think it is an .exe file. It thinks it is an application/vnd.ogc.wms_xml file.
You should not change it in the mapfile as that is counter to the wms spec.
But there are work arounds...
http://geographika.co.uk/wms-get-capabilities
Another option is to tell mapserver to return errors in image instead of as xml as part of the request.
On Jun 29, 2012, at 13:57, Brian Fischer <bfischer at houstoneng.com> wrote:
> I just experienced this as well. Can we add something to the MapServer mapfile to return a valid WMS XML error message? I'm not familiar on how to do this. This would fix the browser thinking it is an .exe file.
>
> Brian Fischer, CFM
> Principal | GIS Project Manager
> Houston Engineering, Inc.
> O 763.493.4522 | D 763.493.6664 | M 763.229.2734
>
>
> -----Original Message-----
> From: geomoose-users-bounces at lists.osgeo.org [mailto:geomoose-users-bounces at lists.osgeo.org] On Behalf Of Ed Boesenberg
> Sent: Friday, June 29, 2012 12:20 PM
> To: eadam at co.lincoln.or.us; 'Jim Klassen'
> Cc: geomoose-users at lists.osgeo.org
> Subject: Re: [Geomoose-users] Problem using Firefox Page Info to debug Mapfile
>
> Thanks Eli, that's what I needed.
>
>
> -----Original Message-----
> From: Eli Adam [mailto:eadam at co.lincoln.or.us]
> Sent: Friday, June 29, 2012 12:36 PM
> To: Jim Klassen
> Cc: Ed Boesenberg; <geomoose-users at lists.osgeo.org>
> Subject: Re: [Geomoose-users] Problem using Firefox Page Info to debug Mapfile
>
>> That is your error message.
>
> So if the .exe is your error message, save it and open it in a text editor.
> It is not really an executable.
>
> Eli
>
>>
>> Either it is a WMS request and it wants to download the error message
>> or, less likely, if none of your local layers are working, it could be
>> mapserv.exe is not recognized as a cgi by the web server.
>>
>> The first case is caused by the WMS spec sending responses as a wms
>> unique content type instead of as text/xml so the browser isn't aware
>> it in fact could render it.
>>
>> Jim
>>
>>
>>
>> On Jun 29, 2012, at 8:34, "Ed Boesenberg"
>> <eboesenberg at niraengineers.com>
>> wrote:
>>
>> I am testing out 2.6 and I am getting a pink screen on a custom layer
>> I loaded. In the past I was to be able to paste the link from Firefox
>> -> Page Info into another tab and see the MapServer error message. In
>> my current Firefox (version 13) I am not able to get the MapServer
>> error message instead Firefox asks me to save mapserv.exe somewhere.
>>
>>
>>
>> Is there a setting in Firefox I need to change to allow me to see the
>> MapServer error message?
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Ed
>>
>>
>>
>> PS
>>
>> Awhile back I volunteered to help in writing the new documents for GM 2.6.
>> Life got a little busy after I volunteered and was unable to help.
>> Sorry for the blank commitment and I hope to help in other ways in the
> future.
>>
>>
>>
>>
>>
>> _______________________________________________
>> Geomoose-users mailing list
>> Geomoose-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>>
>>
>> _______________________________________________
>> Geomoose-users mailing list
>> Geomoose-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>>
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
More information about the Geomoose-users
mailing list