[prev in list] [next in list] [prev in thread] [next in thread]
List: mapserver-users
Subject: Re: [mapserver-users] how can i create mapserver website in VS 2005
From: Paolo Corti <pcorti () gmail ! com>
Date: 2009-03-31 14:04:56
Message-ID: 1238508296019-2563124.post () n2 ! nabble ! com
[Download RAW message or body]
....i did all steps specified in the link...am getting 4 errors like as follows...am \
using vs 2005...can u help me to solve this issue... The type or namespace name \
'pointObj' could not be found (are you missing a using directive or an assembly \
reference?) ..........
looks like you are missing something obvious here, like adding the mapscript dll or \
your environoment is not well configured.
Try if this basic steps are working:
1) create an asp.net project from VS
2) add a reference (must be .NET, not COM!) to the mapscript_csharp.dll
3) create a new form and put this code in the load event:
protected void Page_Load(object sender, EventArgs e)
{
mapObj map = new mapObj(@"C:\whereverisyourmapfile\mapfile.map");
for (int i = 0; i < map.numlayers; i++)
{
layerObj layer = map.getLayer(i);
System.Diagnostics.Debug.WriteLine(layer.name);
}
}
Run your project with the new form as a startup object, if in the output window you \
will see a list with the name of each layer then your environment is correctly \
configured.
Let me know!
Paolo
--
View this message in context: \
http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2563124.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic