views:

274

answers:

2

I am developing a commercial Silverlight application with the new Bing Maps control (Version 1.0), and so far I have not been able to find any answers on how to associate transactions with my Bing Maps developer account. I know the control is not free to use for commercial purposes, so there must be a way for me to give it a Bing Maps token that will link it to my account. How do I do this?

I can get tokens from the Microsoft token service; now all I really need is a code snippet that will tell the map control to use a token.

+1  A: 

For commercial usages and licensing, you should contact [email protected]. (Posted on the Bing Maps Account page).

Reed Copsey
A: 

I contacted [email protected] (according to Reed's suggestion), and the representative said the Silverlight control doesn't support tracking of transactions yet. This means that Microsoft is unable to bill me for using the map control, which means I am not allowed to deploy it commercially in a private web site.

I did, however, find out how to use tokens. It does nothing except display an error message on the map, but the code is there. When transaction tracking is available, I bet it will probably work fine.

map.CredentialProvider = new ClientTokenCredentialsProvider(_tokenFromMicrosoftServer);

Pretty simple.

Phil