tags:

views:

18

answers:

0

I am writing a C# WPF application that basically contains a datagrid of locations. I am trying to use the bing map service to load an image of a location into a tooltip for each element in the datagrid. I have added the Bing ImageryService as a service reference to my project. I am receiving an error that says :

"Could not find default endpoint element that references contract 'ImageryService.IImageryService' in the ServiceModel client configuration section"

This is the line it is getting hung up on :

ImageryServiceClient imageryService = new ImageryServiceClient();

My app.config that is created from the service reference has the endpoint bindings for the IImageryService so it is almost as if the code is not looking in the app.config. Thanks for your help.