This project is read-only.

To start with DeepEarth

Apr 15, 2009 at 8:59 AM
I'm using silverlight 2.0 and I would like to use DeepEarth but I didn't know how to start with it.
I'm trying to follow some movies but I couldn't get on it.
Could someone help me for that?
Please I need an urgent reply.
Apr 15, 2009 at 9:03 AM

what you want to know exactly?

Apr 15, 2009 at 9:09 AM
I took the source code from this link:
When I was trying I found some errors (Maybe because I need to modify few things in this code)
I would like to use this and know how to add database to this map like companies or some addresses.
I haven't any idea about that and I'm using it for the first time and I'll be grateful if you can recommand me with some useful ways.
Thank you.
Apr 15, 2009 at 9:27 AM
Edited Apr 15, 2009 at 9:34 AM
to use Virtual Earth you need to get a developer account

You need to get a Virtual Earth Web Service (VEWS) ID and password 
by setting up a developer account at 
in order to use VE tiles and services. A free 90 day account takes about 2 hours
to be provisioned.

there are other projects in the "Examples" folder that are not using Virtual Earth maps, and you don't need a account to use them
To connect to a database, you can make a WCF service, then referance that in your Silverlight/DeepEarth application
here is a post on how to make a custom pin/point
look in the page.xaml.cs for some other examples of how to make a line, polygon etc...
Apr 16, 2009 at 10:24 AM
Edited Apr 16, 2009 at 10:28 AM
Hi. I'm sorry for that.
I've made a user account but after I don't know how to use the information about that.
I've already download virtual earth 3D but I still need more help about how to use this. Could you please give me more explanations.
I'm trying with Virtual Earth Platform Support but I didn't advance till now.
I'll be grateful if you can help me.

Apr 16, 2009 at 11:09 AM
you add the details for Virtual Earth dev account in the Web.Config file in the ASP.NET application that is hosting the DeepEarth silverlight application
you will see where about 10 or 15 lines from the top of the web.config file
Apr 16, 2009 at 12:24 PM
I did that but what about this Token Service:
Should I use the same username and password in VETokenUserName, VETokenPassword ?

public TokenService()
            try {
                commonservice = new CommonService {
                    Credentials =
                        new NetworkCredential(ConfigurationManager.AppSettings["VETokenUserName"],

                var serviceUrl = ConfigurationManager.AppSettings["VETokenServiceUrl"];
                if (!string.IsNullOrEmpty(serviceUrl))
                    commonservice.Url = serviceUrl;
Apr 16, 2009 at 12:30 PM
yes, but you add them in the web.config file
this then gets used in the TokenService
Apr 17, 2009 at 9:11 AM
I modified the web.config page but I've got an exception while running .
It's on the page References.cs in this code:

 public string EndGetToken(IAsyncResult result)
                var _args = new object[0];
                var _result = ((string) (EndInvoke("GetToken", _args, result)));
                return _result;
and the error is on the line where there is var _result=

this exception is: CommunicationException was unhandled by user code
Apr 17, 2009 at 9:17 AM
are you using the 6 digit number in the username part of the web.config
    <add key="VETokenUserName" value="123456"/>
    <add key="VETokenPassword" value="Your_Password"/>
    <add key="VETokenServiceUrl" value=""/>
Apr 17, 2009 at 9:24 AM
yes. I was using the UserName and not the ID.
I modified it right now and it's working.
But the question is how to add a database to this map? Could you help me?
Apr 17, 2009 at 9:34 AM
Could you tell me please how to make a WCF service?
Apr 17, 2009 at 10:03 AM