Search code examples
c#silverlightvisual-studio-2010windows-phone-7bing-maps

WP7, How to use a service reference after adding it to Visual Studio 2010


I'm following this example for connecting to the Bing Maps geocode service:

Link

About half way down the page, it explains how to add a service reference in Visual Studio 2010, which I was able to do successfully. Then it says to add "using GeoCode.GeoCodeService", but when I do, I get an error saying "The type or namespace 'GeoCode' could not be found"

Am I doing something wrong. The steps are pretty simple and nothing gave an error. What else do I need to do in order to access the service?


Solution

  • When you added the service reference, you gave it a class name. Have a look in your solution explorer to see what you called it, and then you have to instantiate that class to use the service.