Manoj Singh Panwar

Manoj Singh Panwar

  • NA
  • 4.6k
  • 1.1m

I dont know why this error arise

Jan 12 2012 12:03 PM
Hi,
Can somebody tell me why m facing this problem when I define a method for calculating the route in Bingmap in Windows Phone7.
The line of code is :

     routeLine.Locations.Add(new Location(p.Latitude, p.Longitude));

the error I get is : 

Error1:'Microsoft.Phone.Controls.Maps.Platform.Location' does not contain a constructor that takes 2 arguments


Answers (2)