Hello,I have a Silverlight 4 app that has been up and running for some time now but in the last few weeks I've gotten complaints that the Bing geocoder is not returning any records, more often than not.I can request the same address over and over again and sometimes it will return the correct number of records and sometimes none at all. Sometimes it will take up to 10 attempts before a record is returned. Sometimes it will return the correct number of records a couple of times in a row. I don't see any pattern to the behaviour. I've tried different addresses, zip codes and placenames but that doesn't seem to have an impact.I never receive an error message and it always indicates that the credentials where valid. The result is just empty.I stripped the Silverlight code down to the bare minimum and here it is, even though I don't believe it's the issue:Private Sub GeocodeButton_Click(sender As System.Object, e As System.Windows.RoutedEventArgs)
Dim bingGeocoder = New Geocoder("MY_BING_TOKEN")
bingGeocoder.MinimumConfidence = GeocodeService.Confidence.Medium
bingGeocoder.ServerType = ServerType.Production
bingGeocoder.Geocode(AddressBox.Text, AddressOf Geocode_Complete, AddressBox.Text)
End Sub
Private Sub Geocode_Complete(ByVal sender As Object, ByVal args As GeocodeCompletedEventArgs)
If args.Error IsNot Nothing Then
ResultsBlock.Text = args.Error.Message
Else
ResultsBlock.Text = args.Result.Results.Count.ToString
End If
End Sub
I cannot replicate this problem on my development machine however my client is a large state agency and when I move the application onto a machine on their network I can replicate the behaviour. This leads me to believe that it has something to do with security on their network.I'm attaching the request and response for a successful and a failed call. The requests both look the same to me and the responses do too, except that one has an empty Results tag.Thank you very much.