More pre-apologies for the 101 type questions I'm asking here. Thanks for the replies. You were all right, I just had to check all the dll dependencies and copy those into my bin folder (32 dlls in all). Now I am one inch further down the road. I can create the mapfile (text shown below), but how to I get from mapfile to hosted WMS? I will break down the question into the parts I can see so far (please add or subtract if I'm off):<br>
<ol><li>Do I need to create the mapfile in a specific folder for MapServer to 'see' it?</li><li>Are there any other configuration files that need to be created or edited for MapServer to expose my map via WMS?</li>
<li>Can the files in (2) be created/edited via MapScript?</li><li>What would be the base URL of the WMS once it's running?</li></ol>Thanks again for your patience in holding my hand for these baby steps!<br><br>Mapfile currently being created at R:\Temp\A091002122006.map:<br>
<br><b style="font-family: courier new,monospace;">MAP<br> EXTENT -1 -1 -1 -1<br> IMAGECOLOR 255 255 255<br> IMAGETYPE gif<br> SIZE -1 -1<br> STATUS ON<br> UNITS METERS<br> NAME "MS"<br><br> OUTPUTFORMAT<br>
NAME "gif"<br> MIMETYPE "image/gif"<br> DRIVER "GD/GIF"<br> EXTENSION "gif"<br> IMAGEMODE "PC256"<br> TRANSPARENT FALSE<br> END<br><br> LEGEND<br> IMAGECOLOR 255 255 255<br>
KEYSIZE 20 10<br> KEYSPACING 5 5<br> LABEL<br> SIZE MEDIUM<br> TYPE BITMAP<br> BUFFER 0<br> COLOR 0 0 0<br> FORCE FALSE<br> MINDISTANCE -1<br> MINFEATURESIZE -1<br> OFFSET 0 0<br>
PARTIALS TRUE<br> END<br> POSITION LL<br> STATUS OFF<br> END<br><br> QUERYMAP<br> COLOR 255 255 0<br> SIZE -1 -1<br> STATUS OFF<br> STYLE HILITE<br> END<br><br> SCALEBAR<br> ALIGN CENTER<br>
COLOR 0 0 0<br> IMAGECOLOR 255 255 255<br> INTERVALS 4<br> LABEL<br> SIZE MEDIUM<br> TYPE BITMAP<br> BUFFER 0<br> COLOR 0 0 0<br> FORCE FALSE<br> MINDISTANCE -1<br> MINFEATURESIZE -1<br>
OFFSET 0 0<br> PARTIALS TRUE<br> END<br> POSITION LL<br> SIZE 200 3<br> STATUS OFF<br> STYLE 0<br> UNITS MILES<br> END<br><br> WEB<br> IMAGEPATH ""<br> IMAGEURL ""<br>
QUERYFORMAT text/html<br> LEGENDFORMAT text/html<br> BROWSEFORMAT text/html<br> END<br><br> LAYER<br> DATA "R:\Temp\A091002122006_output\A091002122006_PROCESS_RESULTS\AOI_1_S5_MIS_10m_20080706_EV30004214_Ortho_Basin_Indians_NIR.tif"<br>
NAME "AOI_1_S5_MIS_10M_20080706_EV30004214_ORTHO_BASIN_INDIANS_NIR"<br> STATUS ON<br> TYPE RASTER<br> UNITS METERS<br> END<br><br> LAYER<br> DATA "R:\Temp\A091002122006_output\A091002122006_PROCESS_RESULTS\AOI_1_S5_MIS_10m_20080706_EV30004214_Ortho_Basin_Indians_RATIO.tif"<br>
NAME "AOI_1_S5_MIS_10M_20080706_EV30004214_ORTHO_BASIN_INDIANS_RATIO"<br> STATUS ON<br> TYPE RASTER<br> UNITS METERS<br> END<br><br> LAYER<br> DATA "R:\Temp\A091002122006_output\A091002122006_PROCESS_RESULTS\AOI_1_S5_MIS_10m_20080706_EV30004214_Ortho_Basin_Indians_SWIR.tif"<br>
NAME "AOI_1_S5_MIS_10M_20080706_EV30004214_ORTHO_BASIN_INDIANS_SWIR"<br> STATUS ON<br> TYPE RASTER<br> UNITS METERS<br> END<br><br> LAYER<br> DATA "R:\Temp\A091002122006_output\A091002122006_PROCESS_RESULTS\AOI_1_S5_MIS_10m_20080706_EV30004214_Ortho_Basin_Indians_Hot_Spots.tif"<br>
NAME "AOI_1_S5_MIS_10M_20080706_EV30004214_ORTHO_BASIN_INDIANS_HOT_SPOTS"<br> STATUS ON<br> TYPE RASTER<br> UNITS METERS<br> END<br><br> LAYER<br> DATA "R:\Temp\A091002122006_output\A091002122006_PROCESS_RESULTS\AOI_1_S5_MIS_10m_20080706_EV30004214_Ortho_Basin_Indians_FIRE_HIGHLIGHT.tif"<br>
NAME "AOI_1_S5_MIS_10M_20080706_EV30004214_ORTHO_BASIN_INDIANS_FIRE_HIGHLIGHT"<br> STATUS ON<br> TYPE RASTER<br> UNITS METERS<br> END<br><br>END</b><br><br><br>
<br><br><br><div class="gmail_quote">
On Fri, Oct 2, 2009 at 10:12 AM, Tamas Szekeres <span dir="ltr"><<a href="mailto:szekerest@gmail.com" target="_blank">szekerest@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/10/2 Daniel Walton <<a href="mailto:dgwalton@gmail.com" target="_blank">dgwalton@gmail.com</a>>:<br>
<div>> Hey guys,<br>
><br>
> I'm new to MS, and using the MS4W distribution. It was the only Windows<br>
> binary dist. I found that had C# MapScript set up.<br>
<br>
</div>Daniel,<br>
<br>
That's not exactly the case, you could also use the binaries available<br>
at this location:<br>
<a href="http://vbkto.dyndns.org/sdk/" target="_blank">http://vbkto.dyndns.org/sdk/</a><br>
<br>
FWTools (<a href="http://fwtools.maptools.org/" target="_blank">http://fwtools.maptools.org/</a>) should also have the C#<br>
bindings included.<br>
<div><br>
<br>
Anyway, I get the<br>
> following exception when I try to construct a mapObj:<br>
><br>
> The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' threw an<br>
> exception.<br>
><br>
> Anyone else out there seen this?<br>
><br>
><br>
> I have referenced mapscript_csharp.dll compiled by the MS4W folks, and here<br>
> is the properties pane in VS2008:<br>
><br>
<br>
</div>Yes, most of the users have ever seen that, which would normally mean<br>
that not all of the dll-s are available to load when your application<br>
is running.<br>
Make sure all of the required dependecies (like mapscript.dll,<br>
libmap.dll, gdal geos dll-s etc.) are available in your executing<br>
directory.<br>
You may also use a file monitoring tool (like Sysinternals filemon) to<br>
identify the expected location of the files at run-time.<br>
<br>
<br>
<br>
<br>
Best regards,<br>
<font color="#888888"><br>
Tamas<br>
</font></blockquote></div><br>