Personal Blog of Mustafa Basgun

Implementing New Virtual Earth Map Control in ASP.NET

with 4 comments

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.


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:


This sample can be downloaded via here.


Written by Mustafa Basgun

August 15, 2008 at 8:05 AM

4 Responses

Subscribe to comments with RSS.

  1. Tom K.

    August 15, 2008 at 8:11 AM

  2. 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,



    December 12, 2008 at 1:51 AM

  3. Ajeesh – I would recommend downloading my sample application and using the binary file in it.

    Mustafa Basgun

    December 12, 2008 at 8:06 PM

  4. Hi!

    I am Milind Kansagara working as a web developer. Here we have integrated Microsoft.Live.ServerControls.VE.dll in our project. But when we make the code live we are getting error “Could not load file or assembly ‘Microsoft.Live.Server Control.VE. Access Denaied”. The error comes randomly.

    Can anyone has solution? Please email me on

    Milind Kansagara

    Milind Kansagara

    March 15, 2010 at 2:07 AM

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: