Object not Set to a Reference of an Object - Error on Webpage

Apr 22, 2010 at 10:02 PM

I gate an error when I try to add a puchpin to the map.  Code below:

Private Sub LoadLocations()

        Dim locations As New List(Of SearchLocation)

        Dim a As New SearchLocation()
        a.Where = "Katy, TX" 'where to search for (address)
        a.PushPinTitle = "Katy, Texas" ' Title of the puspin
        a.PushPinImage = My.Application.Info.DirectoryPath & "\Pushpin_Red.png" ' Custom image
        Locations.Add(a)
        UcVEarth1.VE_FindLocations(Locations, True, True, Nothing)

    End Sub

Anything I may be doing wrong.  I am initializing the map on form.shown and LoadLocations() is called when I click a button.

Thanks.