Implementing New Virtual Earth Map Control in ASP.NET
When the July 2008 CTP of Live Tools were released a few weeks ago, I was kind of impressed with the Map control. I finally had a chance yesterday to read more about it and develop my own simple testing page. You may need to download this CTP release first before reading the rest of this post.
Implementation
Here is the 5 steps to implement this control into any ASP.NET page:
1. When you create a new website, select “ASP.NET Windows Live Web Site” as a template:

2. Be sure that “Microsoft.Live.ServerControls.VE.dll” is in the Bin directory:

3. Be sure that “Virtual Earth” tab is in the Toolbox:

4. Drag the “Map” control and drop it into the ASP.NET page, and play around with some of the attributes in it:

Note: Latitude and longitude of any location can be found in Terraserver. This sample demonstrates the aerial view of a mall that is very near to my house.
5. Press the magic key (F5) to build and view the sample page:

Download
This sample can be downloaded via here.
For feedback and issues, go to:
https://connect.microsoft.com/feedback/default.aspx?SiteID=505
Tom K.
August 15, 2008 at 8:11 AM
Hi,
I followed the steps above. But I am getting this error when the page is loaded:
“The Map Control Failed to Load, The Virtual Earth API Could not be Found.”
I am using November CTP of the SDK.
Thanks in advance,
Ajeesh
Ajeesh
December 12, 2008 at 1:51 AM
Ajeesh – I would recommend downloading my sample application and using the binary file in it.
Mustafa Basgun
December 12, 2008 at 8:06 PM