Hi everyone,

I'm getting the error:

"Content-type: text/html msReturnPage(): Unable to access file. set in index.html."

when I call the MapServer CGI loadMap() function from an html form.

Here is my relevant html code:

<form name="save_map" action="/cgi-bin/mapserv.exe" onSubmit="ms.saveMapContext()" method="GET"> <input type="hidden" name="map" value="C:/ms4w/Apache/htdocs/genosis/genosis.map">
          <input type="text" name="filename">
          <input type="submit" value="Save Map">
      </form>


My map file is indeed called genosis.map and is in the C:\ms4w\Apache\htdocs\genosis directory. The form is sending a GET request. This is the URL of the page sending the request:

http://treebeard.informatics.jax.org/genosis/frames_dhtml.html?layer=chr&zoomsize=2&map_web=IMAGEPATH+%27C%3A%2Fms4w%2Ftmp%2Fms_tmp%2F%27+IMAGEURL+%27%2Fms_tmp%2F%27+TEMPLATE+genosis_adds_dhtml.html&map=C%3A%2Fms4w%2FApache%2Fhtdocs%2Fgenosis%2Fgenosis.map&program=%2Fcgi-bin%2Fmapserv.exe&root=C%3A%2Fms4w%2FApache%2Fhtdocs%2F&template=genosis_adds_dhtml.html

and the URL of the resulting page is the same.

I'm also not sure what to set WMS_ONLINERESOURCE as in my genosis.map file. When I set it as

"http://localhost/cgi-bin/mapserv.exe?map=genosis.map&";,

I get the error "msLoadMap(): Unable to access file. (genosis.map)."

When I set it as

"http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\genosis\genosis.map&";,

I get the error "Content-type: text/html msReturnPage(): Unable to access file. set in index.html."

I'm assuming these problems are related, but I don't how to fix it. Does anyone know what I'm doing wrong?

Thanks,
Jill


--
*****************************************************
*****Jill M. Recla****UMaine Functional Genomics*****
[EMAIL PROTECTED]
*****************************************************

Reply via email to