Discussion:
Connecting to Virtual Earth
(too old to reply)
vlgomes
2008-10-09 19:29:00 UTC
Permalink
Hi,

I'm trying to use the Virtual Earth Platform, to be used in a mobile device.
I have a developer account, and i'm just trying some things to be
familiarized with the platform. I've created a Windows Mobile 5.0 Device
Application Project in VS2005 and i've inserted the functions present in this
"tutorial" http://msdn.microsoft.com/en-us/library/cc980893.aspx.
I've changed the values
commonService.Credentials = new System.Net.NetworkCredential("myAccountID",
"myAccountPassword") with the values of my developer Account and even though
when i test the credentials, the following message cames back Your Virtual
Earth Platform developer account credentials test was successful. You are
authorized for access to staging.
when i test my program, the following exception appears

"An exception occurred: Credentials are either invalid or unspecified."
Obviously, I checked and re-checked the account id and the account password,
and i just don't know where the error is.
Would you please help me?
Best regards,


Vasco Gomes
Chuck Richardson
2008-10-21 00:41:03 UTC
Permalink
Hi,

I am having the same problem. I can invoke the GetClientToken web method
successfully and I assign the token to but then invoking the
GeocodeServiceClient.Geocode method results in an exception as above.

Does anyone have any ideas as to what the problem might be?

Thanks,

Chuck
Jason Israel
2008-12-10 14:47:00 UTC
Permalink
Hello,

I also am experiencing this. Any suggestions?
Post by Chuck Richardson
Hi,
I am having the same problem. I can invoke the GetClientToken web method
successfully and I assign the token to but then invoking the
GeocodeServiceClient.Geocode method results in an exception as above.
Does anyone have any ideas as to what the problem might be?
Thanks,
Chuck
Jonathan MacCollum
2008-12-18 19:18:01 UTC
Permalink
I get this exact same problem. I can get the token from the common service,
but when I invoke the SearchService's Search method supplying a SearchRequest
that contains Credentials with the supplied Token I get the same exception:

'Credentials are either invalid or unspecified'

Anyone find any solutions?

Thanks!
hs.dreamer
2009-02-27 11:07:02 UTC
Permalink
this problems happens with trial accounts, because they have access only to
staging environments, while MSDN gives only URL to production services.
actually you acquire tokens from staging authentication service, and trying
to use them in production web service, this explains "not authenticated"
message

to use staging environment update your endpoints URL from
http://dev.virtualearth.net/webservices/
to
http://staging.dev.virtualearth.net/webservices/
Post by vlgomes
Hi,
I'm trying to use the Virtual Earth Platform, to be used in a mobile device.
I have a developer account, and i'm just trying some things to be
familiarized with the platform. I've created a Windows Mobile 5.0 Device
Application Project in VS2005 and i've inserted the functions present in this
"tutorial" http://msdn.microsoft.com/en-us/library/cc980893.aspx.
I've changed the values
commonService.Credentials = new System.Net.NetworkCredential("myAccountID",
"myAccountPassword") with the values of my developer Account and even though
when i test the credentials, the following message cames back Your Virtual
Earth Platform developer account credentials test was successful. You are
authorized for access to staging.
when i test my program, the following exception appears
"An exception occurred: Credentials are either invalid or unspecified."
Obviously, I checked and re-checked the account id and the account password,
and i just don't know where the error is.
Would you please help me?
Best regards,
Vasco Gomes
Loading...