This is a migrated thread and some comments may be shown as answers.

BingSearch crash

1 Answer 30 Views
Map
This is a migrated thread and some comments may be shown as answers.
Martijn
Top achievements
Rank 1
Martijn asked on 07 Oct 2010, 03:22 PM
Hi,

I have a list containing a lot of strings(adresses).
For each adresses in the list I made a new BingSearch Request and send it to Bing.

While the searchCompleted events are firing at runtime I get the  just-in-time error included at a random moment

Do you know a way to fix it or a workaround?

Martijn

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 11 Oct 2010, 04:36 PM
Hi Martijn,

The current version of RadMap (2010.2 924) contains the fix for unhandled exceptions which were raised for Bing services. Could you, please, check the version of DLL you use?

Using this version you can check exceptions from Bing service via the Error property. The short sample code is below.

private void InitSearchProvider()
{
    this.searchProvider = new BingSearchProvider()
    {
        ApplicationId = this.bingApplicationId,
        MapControl = this.radMap
    };

    
this.searchProvider.SearchCompleted += new EventHandler<SearchCompletedEventArgs>(searchProvider_SearchCompleted);
}

private
void searchProvider_SearchCompleted(object sender, SearchCompletedEventArgs e)
{
    if (e.Response.Error != null)
    {
        // Bing Search error has been occured
        // error message -- e.Response.Error.Message
    }
    else
    {
        // Search response complete
    }
}

Best wishes,
Andrey Murzov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Map
Asked by
Martijn
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or