Get Virtual Earth Token page - ASP.NETE-mail This Topic Printable Version Give Us Feedback

This page contains a download and instructions for configuring the "Get Virtual Earth Token" page for ASP.NET applications.

Before following these instructions, ensure that ASP.NET version 2.0 or higher is installed on your server and is registered with your Internet Information Services (IIS) Web server. For Windows Server 2003, ensure that ASP.NET is allowed on the server. See the Microsoft ASP.NET help or other resources for configuring ASP.NET on your server. The folder for your application does not need to allow script execution, as long as the root Web site is configured for ASP.NET.

  1. Download vetokenDotNet.zip.
  2. Extract the contents of vetokenDotNet.zip to a Web-accessible IIS folder.
  3. Open the file vetoken.ashx in a text editor and edit the "userName" and "password" variables near the top of the file to contain your credentials for accessing Microsoft Virtual Earth.
  4. Edit the "refererURLs" to include the URL of the server that hosts your Web site. For example, if your application is running at http://myserver.com/myApp.html, set your allowed refererUrls to include http://myserver.com. Only applications hosted on http://myserver.com can use your Get Virtual Earth Token page.