Crédentials ?

Amokrane
01-30-2008, 06:18 PM
Hello ,

I am trying to devellop with map point , when i've runned my application , i've got 0 errors during the compilation but 1error during the execution : Could not establish a connection to network.

System.Net.WebException was unhandled
Message="Could not establish connection to network."
StackTrace:
at System.Net.HttpWebRequest.finishGetResponse()
at System.Net.HttpWebRequest.GetResponse()
at System.Web.Services.Protocols.WebClientProtocol.Ge tWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.doInvoke(String methodName, Object[] parameters, WebClientAsyncResult asyncResult)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String methodName, Object[] parameters)
at mappoint.net.mappoint.staging.FindServiceSoap.Find Address(FindAddressSpecification specification)
at mappoint.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form._SetVisibleNotify(Boolea n fVis)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.Run(Form fm)
at mappoint.Program.Main()



I've , firsth thought about a credential problem , so i've gone to the virtual earth patfom customer services , and applied for an developper account , but when i've tested it by this line of code :

fss.Credentials = new System.Net.NetworkCredential("myemail", "password");

But it didn't work :(

any idea ?

andrea
04-01-2008, 05:18 AM
hey, did yu have solved your problem?

which credential do yu set? by msn passport or new register on the mappoint website?

Amokrane
04-01-2008, 08:06 AM
Hello,

With this :

rss.Credentials = new System.Net.NetworkCredential("myid", "mypassword");


It worked :)

andrea
04-01-2008, 08:23 AM
but do yu use msn passport credential or the credential that yu can find on the website https://mappoint-css.live.com/CSCV3/ ?
thanks

Amokrane
04-01-2008, 08:40 AM
In fact , i used the credential given on the website..
( not the msn passport)

andrea
04-01-2008, 08:46 AM
In fact , i used the credential given on the website..
( not the msn passport)

but i dont understand if i must to use msn passport credential or the credential on the website..

Amokrane
04-01-2008, 08:52 AM
Read carefully , already told you that itsn't the msn passport :)

it is something like :

rss.Credentials = new System.Net.NetworkCredential("130955", "yourpasword");

andrea
04-01-2008, 09:27 AM
thanks :D

Amokrane
04-01-2008, 09:59 AM
You're welcome !

andrea
04-01-2008, 10:04 AM
You're welcome !

but i don't understand why my connection goes always in timeout..

Amokrane
04-01-2008, 10:13 AM
It should work !
When did you subscribe to the service ? ( because you have to wait 24hours for your account been activated)
can you show me your code ?

andrea
04-01-2008, 10:15 AM
It should work !
When did you subscribe to the service ? ( because you have to wait 24hours for your account been activated)
can you show me your code ?

maybe i must wait cause i've subscribe it this morning ( 8 hours ago)
i will try tomorrow...

Amokrane
04-01-2008, 10:18 AM
So that's the reason ! :)

 
Web mp2kmag.com
mapforums.com