[mapserver-users] how can i create mapserver website in VS 2005 (VB)
Paolo Corti
pcorti at gmail.com
Tue Mar 31 07:04:56 PDT 2009
....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.
More information about the MapServer-users
mailing list