Hi, I was trying to get some examples from the MapPoint book to work but when i try to add a pushpin i get a COM exception.
Either in Csharp and VB.net i get this error at axMappointControl1.ActiveMap.AddPushpin:Code://Get map center location MapPoint.Location location = axMappointControl1.ActiveMap.Location; //Add a pushpin at this location MapPoint.Pushpin pushpin = axMappointControl1.ActiveMap.AddPushpin(location, "Center"); //Assign a symbol pushpin.Symbol = 64; //Select and highlight the location pushpin.Select(); pushpin.Highlight = true; //Write annotation pushpin.Note = "This is my favorite place!";
The database schema is not recognized
Can someone help me please ?
Thanks in advance!