System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
Consider the following scenario. You download Microsoft MapPoint Web Service Software Development Kit (SDK) version 4.1. You open one of the MapPoint Web Service SDK sample projects in Microsoft Visual Studio 2005. In this scenario, when Visual Studio 2005 upgrades the sample project, you receive various error messages. For example, you may receive the following error message:
ERROR: Unable to get local copy of file web references\mappointservice\reference.cs.
Additionally, if you try to compile the sample project, you receive various compilation error messages.
Some of the error messages occur because Visual Studio 2005 includes new language features for Microsoft Visual C# and for Microsoft Visual Basic. These new language features are not present in earlier versions of Visual Studio. Other error messages occur because the Visual Studio 2005 Upgrade Wizard does not correctly convert the MapPoint Web Service SDK sample projects.
To resolve these problems, use one or more of the following methods.
Notes
You may have to use several of these methods to make a sample project or solution compile successfully.
The Visual Studio 2005 Upgrade Wizard does not correctly convert the LineDrive solution or the TrafficIncidents solution. You must build the Visual C# and Visual Basic projects in these solutions separately by using method 2.
After Visual Studio 2005 locates the Web service, type the correct Web reference name in the Web reference name box. Use the following table to determine the correct Web reference name for the sample project.
Collapse this tableExpand this table
Project name
Web reference
name
FindCS
CoreFunctionality.MapPointService
FindVB
CoreFunctionality.MapPointService
FindAddressCS
FindAddressCS.MapPointService
FindAddressVB
FindAddressVB.MapPointService
FindNearbyCS
FindNearbyCS.MapPointService
FindNearbyVB
FindNearbyVB.MapPointService
FindNearRouteCS
CoreFunctionality.MapPointService
FindNearRouteVB
CoreFunctionality.MapPointService
MapWithNavigationButtonsCS
MapWithNavigationButtonsCS.MapPointService
MapWithNavigationButtonsVB
MapWithNavigationButtonsVB.MapPointService
RouteCS
RouteCS.MapPointService
RouteVB
RouteVB.MapPointService
ImageMapCS
ImageMap.MapPointService
ImageMapVB
ImageMap.MapPointService
InsetOverviewCS
InsetOverviewCS.MapPointService
InsetOverviewVB
InsetOverviewVB.MapPointService
LineDriveCS
LineDriveCS.MapPoint
LineDriveVB
LineDriveVB.MapPoint
PocketIECS
PocketIECS.MapPointService
PocketIEVB
PocketIEVB.MapPointService
PanMapNavigationControlCS
PanMapNavigationControlCS.MapPointService
PanMapNavigationControlVB
PanMapNavigationControlVB.MapPointService
StoreLocatorCS
StoreLocatorCS.MapPointService
StoreLocatorVB
StoreLocatorVB.MapPointService
TrafficIncidentsCS
TrafficIncidentsCS.MapPoint
TrafficIncidentsVB
TrafficIncidentsVB.MapPoint
TurnByTurnRouteMapsCS
TurnByTurnRouteMapsCS.MapPointService
TurnByTurnRouteMapsVB
TurnByTurnRouteMapsVB.MapPointService
Click Add Reference.
Right-click the project, and then click Rebuild Solution.
Method 3: Modify function parameters in the Find C# project
When you try to compile the Find C# project in the CoreFunctionality folder after you use the previous methods, you receive several error messages that resemble the following:
A property or indexer may not be passed as an out or ref parameter.
To resolve this problem, follow these steps:
Start Visual Studio 2005.
On the File menu, point to Open, and then click Project/Solution.
Locate the Find C# project, and then click Open.
In Solution Explorer, double-click Find.aspx.cs.
On the Edit menu, click Go To.
In the Line number box, type 224, and then click OK.