Problem with accessing and Interested to implement your dlls in a foxpro app

131 views
Skip to first unread message

Piterluis RumoresF1

unread,
Mar 13, 2012, 2:05:30 PM3/13/12
to F1 Live-Timing for .NET
Good day,

Me name is Pedro Luis Romera and I am one of the admins in a Formula 1
forum in Spain. It is not an online newspaper or something like
that... just a few formula 1 fans who want to share time and interest
via web with other people.

Ok... we use to cover all formula1 events (GPs, and official and
private tests) and we use to post timing tables in a personalized
format and view getting data from one of the online publication which
publish lap times often during formula 1 sessions. We have a foxpro
based software (made by myself) which gets the table data (just
copying and pasting the table into my soft) and transform it fastly in
our "personalized lap times table". Ok.. .that works fine... but the
problem is that we need time table in text format... And we always
depend of external webs which often don't cover all the events or
maybe lap times are not refreshing often enough...

Ok, looking info via web about how to obtain data for official
sessions directly from formula1 official server I have found you. I
have to say that I am really impressed with your job. Really
congratulations for that!! Really stupendous. :)

Could I include your libs in our private application? Of course, we
are not going to take any kind of economical profit of it... I have
had a look at your libs and utils and I find easy to implement your
utils into our application... we can just launch the f1recorder and
take profit of the text data that is generating continuosly... but I
think the cleanly and best way to implement your system into our
foxpro app is using your libs directly... But I am not proffesional in
programming and for me is quite hard to implement them... is there
more documentation and examples about how to implement them into
visual basic/delphi/foxpro apps?

By other hand, two weeks ago I was able to connect to formula1 server
and to obtain barzilian GP data (2011 GP) using my formula1 web page
account and password... but now I always receive a SSL connection
error and formula 1 server seems to refuse my connection attemp...

Thanks a lot for your time and attention! :)

Pedro Luis Romera.

Александр

unread,
Mar 14, 2012, 12:12:13 AM3/14/12
to Piterluis RumoresF1, F1 Live-Timing for .NET
Hi!

The authorization service address has been changed.
New address: http://www.formula1.com/reg/login?redirect_url=%2flive_timing%2f
And now you should set referer for it request.
> request.Referer = "http://www.formula1.com/live_timing/";

--
WBR,

Alexander

E-mail: alex...@povarnitsyn.ru
ICQ: 260891575

Piterluis RumoresF1

unread,
Mar 14, 2012, 6:50:25 AM3/14/12
to F1 Live-Timing for .NET
Hi Alexander! THanks for your answers! :)

I see you found the problem... but, could I solve it to connect via
f1recorder? I suppose if I interactuate with dlls directly I can, but
"playing" with f1recorder directly maybe I can not...

Sorry for my general doubts...

First attempt with my app is using f1recorder and reading the log file
is continuosly generating. I had it almost clear but connections
problems have made me to stop... Once I have it clear, I want to try
to compile dlls as COM object as you told me and try to use them
directly from my app...

Really thanks for your help!


On 14 mar, 05:12, Александр <alexan...@povarnitsyn.ru> wrote:
> Hi!
>
> The authorization service address has been changed.
> New address:http://www.formula1.com/reg/login?redirect_url=%2flive_timing%2f
> And now you should set referer for it request.
>
> > request.Referer = "http://www.formula1.com/live_timing/";
>
> --
> WBR,
>
> Alexander
>
> E-mail: alexan...@povarnitsyn.ru

Александр

unread,
Mar 14, 2012, 9:19:27 AM3/14/12
to Piterluis RumoresF1, F1 Live-Timing for .NET
For changing URL problem you need to rebuild AK.F1.Timing.Core.dll or
wait when Andy will do it.

Once again, just for the protocol. Using AK.F1.Timing.Core.dll as a
COM is a very BAD idea. Much easy learn C# and .NET (it very simple
platform).

--
WBR,

Alexander

E-mail: alex...@povarnitsyn.ru
ICQ: 260891575

Wednesday, March 14, 2012, you wrote:
> Hi Alexander! THanks for your answers! :)

> I see you found the problem... but, could I solve it to connect via
> f1recorder? I suppose if I interactuate with dlls directly I can, but
> "playing" with f1recorder directly maybe I can not...

> Sorry for my general doubts...

> First attempt with my app is using f1recorder and reading the log file
> is continuosly generating. I had it almost clear but connections
> problems have made me to stop... Once I have it clear, I want to try
> to compile dlls as COM object as you told me and try to use them
> directly from my app...

> Really thanks for your help!

F1 Looney

unread,
Mar 14, 2012, 2:32:15 PM3/14/12
to F1 Live-Timing for .NET
The latest build resolves the login issue:

http://teamcity.codebetter.com/viewLog.html?buildTypeId=bt174&buildId=lastSuccessful&tab=artifacts&guest=1

Thanks go to Alexander for providing the solution.

| Could I include your libs in our private application? Of course, we
are not going to take any kind of economical profit of it...

The project is licensed under the Apache License, Version 2.0; in
summary you can use the project in binary form for any purpose,
without warranty.

| is there more documentation and examples about how to implement them
into visual basic/delphi/foxpro apps?

Unfortunately, the aforementioned technologies are not supported.
VB.NET is, although that probably isn't any help!

On Mar 14, 1:19 pm, Александр <alexan...@povarnitsyn.ru> wrote:
> For changing URL problem you need to rebuild AK.F1.Timing.Core.dll or
> wait when Andy will do it.
>
> Once again, just for the protocol. Using AK.F1.Timing.Core.dll as a
> COM is a very BAD idea. Much easy learn C# and .NET (it very simple
> platform).
>
> --
> WBR,
>
> Alexander
>
> E-mail: alexan...@povarnitsyn.ru
> ICQ: 260891575
>
> Wednesday, March 14, 2012, you wrote:
>
>
>
>
>
>
>
> > Hi Alexander! THanks for your answers! :)
> > I see you found the problem... but, could I solve it to connect via
> > f1recorder? I suppose if I interactuate with dlls directly I can, but
> > "playing" with f1recorder directly maybe I can not...
> > Sorry for my general doubts...
> > First attempt with my app is using f1recorder and reading the log file
> > is continuosly generating. I had it almost clear but connections
> > problems have made me to stop... Once I have it clear, I want to try
> > to compile dlls as COM object as you told me and try to use them
> > directly from my app...
> > Really thanks for your help!

Piterluis RumoresF1

unread,
Mar 14, 2012, 6:15:34 PM3/14/12
to F1 Live-Timing for .NET
Thanks a lot (both!) for your advising. I think I am going to learn
about .NET... :)

Meanwhile, I will try to go on with the f1recorder.exe. I am not going
to spend time with COM attempts. I will follow Alexander advise.

Just a last doubt. I have download last revision and I am not able to
connect... it seems "credentials have been rejected". I have tried
with "f1recorder live myac...@gmail.com mypassowrd session.tms" with
two accounts I have (both working within formula1 server) and no
success.

I have to say that all my tests where with an old build version which
did not need to use "live" command...

THanks!

On 14 mar, 19:32, F1 Looney <formula1.loo...@gmail.com> wrote:
> The latest build resolves the login issue:
>
> http://teamcity.codebetter.com/viewLog.html?buildTypeId=bt174&buildId...
>
> Thanks go to Alexander for providing the solution.
>
> | Could I include your libs in our private application? Of course, we
> are not going to take any kind of economical profit of it...
>
> The project is licensed under the Apache License, Version 2.0; in
> summary you can use the project in binary form for any purpose,
> without warranty.
>
> | is there more documentation and examples about how to implement them
> into visual basic/delphi/foxpro apps?
>
> Unfortunately, the aforementioned technologies are not supported.
> VB.NET is, although that probably isn't any help!
>

F1 Looney

unread,
Mar 15, 2012, 1:49:49 AM3/15/12
to ak-f1-...@googlegroups.com
I'm  able to login OK.

Could you post the stack trace from the f1recorder.exe.log? Logs are created the logs directory that's in the same directory as the recorder.exe


I have to say that all my tests where with an old build version which did not need to use "live" command...

The live command (and proxy command) were introduced quite some time ago; one to record the live feed, one to record a proxyied feed.

Piterluis RumoresF1

unread,
Mar 15, 2012, 3:21:22 AM3/15/12
to F1 Live-Timing for .NET
Hi! Thanks for the help!

Yes... I was using (for my tests) a 8.824.393 version. Recently I saw
command line was changed but I did not update... I wanted to tests
firstly what I could obtain from log and so on.

Ok, here is the folder where I launch f1recorder from... "F:\Fo=^=o_
\TablaMaker\f1utils"

And here, how I launch f1recorder using just a DOS windows...
"f1recorder.exe live hacedord...@gmail.com 2011Formula1
sesion.tms"

Don't worry about user and password. I created them just for testing
the app.

And here the log I obtain...

2012-03-15 07:55:55.4631 INFO Program[1]: authenticating...
2012-03-15 07:55:55.4943 INFO LiveAuthenticationService[1]: fetching
auth token from http://www.formula1.com/reg/login?redirect_url=/live_timing/
for user hacedord...@gmail.com
2012-03-15 07:55:56.3211 ERROR LiveAuthenticationService[1]: failed to
fetch the auth token as no cookie named USER was found in the response
to the login request, assuming the credentials have been rejected
2012-03-15 07:55:56.3367 ERROR Program[1]:
System.Security.Authentication.AuthenticationException: The supplied
credentials have been rejected by the live-timing service.
at AK.F1.Timing.Live.LiveAuthenticationService.Login(String
username, String password)
at AK.F1.Timing.Utility.Recorder.Program.TryAuthenticate(String
username, String password, AuthenticationToken& token)

If I use this user and password in your f1timing application, it works
perfectly. I am sure I am doing something silly that causes the
failure...

Thanks for your time and attention! :)


On 15 mar, 06:49, F1 Looney <formula1.loo...@gmail.com> wrote:
> I'm  able to login OK.
>
> Could you post the stack trace from the f1recorder.exe.log? Logs are
> created the logs directory that's in the same directory as the recorder.exe
>
> I have to say that all my tests where with an old build version which did
>
> > not need to use "live" command...
>
> The live command (and proxy command) were introduced quite some time ago;
> one to record the live feed, one to record a proxyied feed.
>
>
>
>
>
>
>
> On Wednesday, 14 March 2012 22:15:34 UTC, Piterluis RumoresF1 wrote:
>
> > Thanks a lot (both!) for your advising. I think I am going to learn
> > about .NET... :)
>
> > Meanwhile, I will try to go on with the f1recorder.exe. I am not going
> > to spend time with COM attempts. I will follow Alexander advise.
>
> > Just a last doubt. I have download last revision and I am not able to
> > connect... it seems "credentials have been rejected". I have tried
> > with "f1recorder live myaco...@gmail.com mypassowrd session.tms" with

F1 Looney

unread,
Mar 15, 2012, 3:53:28 AM3/15/12
to ak-f1-...@googlegroups.com
And here, how I launch f1recorder using just a DOS windows...
"f1recorder.exe live hacedord...@gmail.com 2011Formula1
sesion.tms"

I can successfully run the recorder using your credentials. Can you confirm that you are using the latest build (0.9.982.444)?

Piterluis RumoresF1

unread,
Mar 15, 2012, 4:37:14 AM3/15/12
to F1 Live-Timing for .NET
Yes, I do... "F1 Live-Timing Recorder for .NET 4. - v0.9.982.444"

I just open a DOS command on the utils directory (Shift key, right
mouse click and "Open command windows here") ... is it (maybe) a
problem of DOS basic configuration or something like that? I am
getting a little bit crazy with this issue... Logically, if I create a
bat file to execute directly the f1recorder, I obtain same error
connection...

I have tested it in two different computers with Windows 7 and same
problem occurs...

On 15 mar, 08:53, F1 Looney <formula1.loo...@gmail.com> wrote:
> > And here, how I launch f1recorder using just a DOS windows...
> > "f1recorder.exe live hacedordetabli...@gmail.com 2011Formula1
> > sesion.tms"
>
> I can successfully run the recorder using your credentials. Can you confirm
> that you are using the latest build (0.9.982.444)?
>
>
>
>
>
>
>
> On Thursday, 15 March 2012 07:21:22 UTC, Piterluis RumoresF1 wrote:
>
> > Hi! Thanks for the help!
>
> > Yes... I was using (for my tests) a 8.824.393 version. Recently I saw
> > command line was changed but I did not update... I wanted to tests
> > firstly what I could obtain from log and so on.
>
> > Ok, here is the folder where I launch f1recorder from... "F:\Fo=^=o_
> > \TablaMaker\f1utils"
>
> > And here, how I launch f1recorder using just a DOS windows...
> > "f1recorder.exe live hacedordetabli...@gmail.com 2011Formula1
> > sesion.tms"
>
> > Don't worry about user and password. I created them just for testing
> > the app.
>
> > And here the log I obtain...
>
> > 2012-03-15 07:55:55.4631 INFO Program[1]: authenticating...
> > 2012-03-15 07:55:55.4943 INFO LiveAuthenticationService[1]: fetching
> > auth token from
> >http://www.formula1.com/reg/login?redirect_url=/live_timing/
> > for user hacedordetabli...@gmail.com

F1 Looney

unread,
Mar 15, 2012, 4:55:08 AM3/15/12
to ak-f1-...@googlegroups.com
Can you post the f1recorder.exe.log log file? Logs are created the logs directory that's in the same directory as the recorder.exe

Piterluis RumoresF1

unread,
Mar 15, 2012, 5:19:28 AM3/15/12
to F1 Live-Timing for .NET
Yes, of course! :) I wrote it two posts ago. Anyway, here I send you
link to download last two logs... http://www.box.com/s/5df5c731479ca625c14f

Piterluis RumoresF1

unread,
Mar 15, 2012, 5:22:15 AM3/15/12
to F1 Live-Timing for .NET
Sorry... I posted a wrong link... jejeje... Here the right one...
http://www.box.com/s/f8d5c60958a75652528d

Really sorry... :)

On 15 mar, 10:19, Piterluis RumoresF1 <piterl...@gmail.com> wrote:
> Yes, of course! :) I wrote it two posts ago. Anyway, here I send you
> link to download last two logs...http://www.box.com/s/5df5c731479ca625c14f

Piterluis RumoresF1

unread,
Mar 15, 2012, 7:46:48 AM3/15/12
to F1 Live-Timing for .NET
Something has to be worng in my command line... f1recorder.exe live
hacedord...@gmail.com 2011Formula1 sesion.tms

Because I have tested it in a laptop with Windows XP, and I obtain
same error and same log... something with "spaces", with the order of
parameters, I don't konw...

It is quite curious... Logically, if I try with your F1 Timing
application, same user and password, it works perfectly. Mistake must
be in the way I launch f1recorder.exe and parameters...


On 15 mar, 10:22, Piterluis RumoresF1 <piterl...@gmail.com> wrote:
> Sorry... I posted a wrong link... jejeje... Here the right one...http://www.box.com/s/f8d5c60958a75652528d

F1 Looney

unread,
Mar 15, 2012, 11:32:55 AM3/15/12
to ak-f1-...@googlegroups.com
Odd, I have tried on two seperate machines and I can authenticate using your credentials.

Try running the following command, it's as explicit as you can possibly be:

f1recorder.exe live --username=hacedord...@gmail.com --password=2011Formula1 --session=sesion.tms

Piterluis RumoresF1

unread,
Mar 15, 2012, 11:43:48 AM3/15/12
to F1 Live-Timing for .NET
Thanks a lot for your help. But I think I start to lose the
faith... :)

I have copied exactly what you posted in a .bat file. Logically, I
have written it into the same line and I have replaced dots with the
complete user name. Double click over the batch file and here the log
result...

2012-03-15 16:42:44.5088 INFO Program[1]: authenticating...
2012-03-15 16:42:44.5298 INFO LiveAuthenticationService[1]: fetching
for user hacedord...@gmail.com
2012-03-15 16:42:50.7621 ERROR LiveAuthenticationService[1]: failed to
fetch the auth token as no cookie named USER was found in the response
to the login request, assuming the credentials have been rejected
2012-03-15 16:42:50.7721 ERROR Program[1]:
System.Security.Authentication.AuthenticationException: The supplied
credentials have been rejected by the live-timing service.
at AK.F1.Timing.Live.LiveAuthenticationService.Login(String
username, String password)
at AK.F1.Timing.Utility.Recorder.Program.TryAuthenticate(String
username, String password, AuthenticationToken& token)

Content of the batch file is just... "f1recorder.exe live --
username=hacedord...@gmail.com --password=2011Formula1 --
session=sesion.tms"

No luck... :(

I don't understand what's happening. From same PCs, I can connect to
formula1.com server using your f1 timing application and of course,
using same credentials. In this way, it is not a credentials or a
machine/internet connection problem...






On 15 mar, 16:32, F1 Looney <formula1.loo...@gmail.com> wrote:
> Odd, I have tried on two seperate machines and I can authenticate using
> your credentials.
>
> Try running the following command, it's as explicit as you can possibly be:
>
> f1recorder.exe live --username=hacedordetabli...@gmail.com
> --password=2011Formula1 --session=sesion.tms
>
>
>
>
>
>
>
> On Thursday, 15 March 2012 11:46:48 UTC, Piterluis RumoresF1 wrote:
>
> > Something has to be worng in my command line... f1recorder.exe live
> > hacedordetabli...@gmail.com 2011Formula1 sesion.tms
> ...
>
> leer más »

F1 Looney

unread,
Mar 15, 2012, 12:21:52 PM3/15/12
to ak-f1-...@googlegroups.com
I don't understand what's happening. From same PCs, I can connect to
formula1.com server using your f1 timing application and of course,
using same credentials. In this way, it is not a credentials or a
machine/internet connection problem...

Both the recorder and the UI share the same assembly so I would expect the same issue in both. Are you using v0.9.982.444 of f1timing.exe?

As I have been able to authenticate using your credentails on two separate machines in two different networds, it looks like the issue may be local. Do you have a firewall enabled? Windows or otherwise? If so temporarily disable if and then try again. Are you being a proxy? Try bypassing the proxy for www.formula1.com and try again.

On Thursday, 15 March 2012 15:43:48 UTC, Piterluis RumoresF1 wrote:
Thanks a lot for your help. But I think I start to lose the
faith... :)

I have copied exactly what you posted in a .bat file. Logically, I
have written it into the same line and I have replaced dots with the
complete user name. Double click over the batch file and here the log
result...

2012-03-15 16:42:44.5088 INFO Program[1]: authenticating...
2012-03-15 16:42:44.5298 INFO LiveAuthenticationService[1]: fetching
auth token from http://www.formula1.com/reg/login?redirect_url=/live_timing/
for user hacedord...@gmail.com
2012-03-15 16:42:50.7621 ERROR LiveAuthenticationService[1]: failed to
fetch the auth token as no cookie named USER was found in the response
to the login request, assuming the credentials have been rejected
2012-03-15 16:42:50.7721 ERROR Program[1]:
System.Security.Authentication.AuthenticationException: The supplied
credentials have been rejected by the live-timing service.
   at AK.F1.Timing.Live.LiveAuthenticationService.Login(String
username, String password)
   at AK.F1.Timing.Utility.Recorder.Program.TryAuthenticate(String
username, String password, AuthenticationToken& token)

Content of the batch file is just... "f1recorder.exe live --
username=hacedordetablicas@gmail.com --password=2011Formula1 --

Piterluis RumoresF1

unread,
Mar 15, 2012, 2:15:14 PM3/15/12
to F1 Live-Timing for .NET
Both the recorder and the UI share the same assembly so I would expect
the
same issue in both. Are you using v0.9.982.444 of f1timing.exe?

Yes. I use same version for both. Have in count that last version is
only one able to connect correctly... ;) at least for all but me with
f1recorder... ;)

As I have been able to authenticate using your credentails on two
separate
machines in two different networds, it looks like the issue may be
local.
Do you have a firewall enabled? Windows or otherwise? If so
temporarily
disable if and then try again. Are you being a proxy? Try bypassing
the
proxy for www.formula1.com and try again.<http://www.formula1.com/reg/
login?redirect_url=/live_timing/>

I don't have firewall. I like to deactivate it when I install a new
OS. And I don't use proxy in my PC configuration. In my opinion...
there is something in my whole command f1recorder line that makes the
connection fails... I don't find other possibility...

It is a pity... I wanted to have ready the app for first year session
but I think... no choice... :)

Thanks for the help anyway! :)

Piterluis RumoresF1

unread,
Mar 15, 2012, 6:51:38 PM3/15/12
to F1 Live-Timing for .NET
Some of my colleages in my web forum have tested the app and they have
obtained same result. Problem accessing with their credentials.
Credentials which work perfectly in formula 1 web page or with your f1
timing app...

Is it possible there is a problem with f1recorder and connections from
spanish internet providers or general proxys? ... I am sure I am
getting crazy step by step... jejejee...

I think I have to go on with dlls and .NET... je, je...

On 15 mar, 19:15, Piterluis RumoresF1 <piterl...@gmail.com> wrote:
> Both the recorder and the UI share the same assembly so I would expect
> the
> same issue in both. Are you using v0.9.982.444 of f1timing.exe?
>
> Yes. I use same version for both. Have in count that last version is
> only one able to connect correctly... ;) at least for all but me with
> f1recorder... ;)
>
> As I have been able to authenticate using your credentails on two
> separate
> machines in two different networds, it looks like the issue may be
> local.
> Do you have a firewall enabled? Windows or otherwise? If so
> temporarily
> disable if and then try again. Are you being a proxy? Try bypassing
> the
> proxy forwww.formula1.comand try again.<http://www.formula1.com/reg/

F1 Looney

unread,
Mar 19, 2012, 12:05:50 PM3/19/12
to F1 Live-Timing for .NET
Please can you try following the instructions in this thread:

http://groups.google.com/group/ak-f1-timing/msg/b61326a6b3cfe534

On Mar 15, 10:51 pm, Piterluis RumoresF1 <piterl...@gmail.com> wrote:
> Some of my colleages in my web forum have tested the app and they have
> obtained same result. Problem accessing with their credentials.
> Credentials which work perfectly in formula 1 web page or with your f1
> timing app...
>
> Is it possible there is a problem with f1recorder and connections from
> spanish internet providers or general proxys? ... I am sure I am
> getting crazy step by step... jejejee...
>
> I think I have to go on with dlls and .NET... je, je...
>
> On 15 mar, 19:15, Piterluis RumoresF1 <piterl...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Both the recorder and the UI share the same assembly so I would expect
> > the
> > same issue in both. Are you using v0.9.982.444 of f1timing.exe?
>
> > Yes. I use same version for both. Have in count that last version is
> > only one able to connect correctly... ;) at least for all but me with
> > f1recorder... ;)
>
> > As I have been able to authenticate using your credentails on two
> > separate
> > machines in two different networds, it looks like the issue may be
> > local.
> > Do you have a firewall enabled? Windows or otherwise? If so
> > temporarily
> > disable if and then try again. Are you being a proxy? Try bypassing
> > the
> > proxy forwww.formula1.comandtry again.<http://www.formula1.com/reg/

Piterluis RumoresF1

unread,
Mar 19, 2012, 6:35:34 PM3/19/12
to F1 Live-Timing for .NET
Hi!!

I have downloaded your new test app and here the results...

F:\Fo=^=o_\TablaMaker\f1utils>connectiontest
resolving host: live-timing.formula1.com
resolved: 195.69.153.18:4321
connecting: 195.69.153.18:4321
connected
press any key to exit

F:\Fo=^=o_\TablaMaker\f1utils>connectiontest
hacedord...@gmail.com 2011For
mula1
resolving host: live-timing.formula1.com
resolved: 195.69.153.18:4321
connecting: 195.69.153.18:4321
connected
press any key to exit

F:\Fo=^=o_\TablaMaker\f1utils>

As you can see, first attempt just eexcuting the app, and second one,
adding user and password. I obtain same result in both tries.

Really thanks for your attention! :)

Piterluis RumoresF1

unread,
Mar 19, 2012, 6:46:42 PM3/19/12
to F1 Live-Timing for .NET
Sorry... I tried with wrong app... Here the results with
authnticationtest app...


F:\Fo=^=o_\TablaMaker\f1utils\Auth>authenticationtest
usage: <username> <password>

F:\Fo=^=o_\TablaMaker\f1utils\Auth>authenticationtest
hacedord...@gmail.co
m 2011Formula1
23:42:40.6922 INFO Program[1]: authenticating,
username='hacedordetablicas@gmail
.com', password='2011Formula1'
23:42:40.7022 INFO LiveAuthenticationService[1]: fetching auth token
hacedordetablica
s...@gmail.com
23:42:41.4922 ERROR LiveAuthenticationService[1]: failed to fetch the
auth token
as no cookie named USER was found in the response to the login
request, assumin
g the credentials have been rejected
23:42:41.5542 ERROR Program[1]:
System.Security.Authentication.AuthenticationExc
eption: The supplied credentials have been rejected by the live-timing
service.
at AK.F1.Timing.Live.LiveAuthenticationService.Login(String
username, String
password)
at AuthenticationTest.Program.Main(String[] args)

F:\Fo=^=o_\TablaMaker\f1utils\Auth>


PS. I have to say that I have downloaded Visual Studio 11 Beta version
from MS web page... there is a avaliable version activated for 300
days or something like that... and I am going to learn about
visualbasic.net interface... I want to implement your libs directly in
a new version of my soft, this time developed under VB.net... :) You
told me I could use your libs directly on VB.NET... Am I right?
MEanwhile, if we solve authentication problem, foxpro app version will
work with your f1recorder util... :)

F1 Looney

unread,
Mar 20, 2012, 3:59:42 PM3/20/12
to F1 Live-Timing for .NET
Very odd. Please try running the AuthenticationTest.exe from an
administrative command line.

> a new version of my soft, this time developed under VB.net... :) You
> told me I could use your libs directly on VB.NET... Am I right?

The library can be used by any CLS compliant language.

As a side note, I would seriously recommend learning C# and not
VB.NET.

On Mar 19, 10:46 pm, Piterluis RumoresF1 <piterl...@gmail.com> wrote:
> Sorry... I tried with wrong app... Here the results with
> authnticationtest app...
>
> F:\Fo=^=o_\TablaMaker\f1utils\Auth>authenticationtest
> usage: <username> <password>
>
> F:\Fo=^=o_\TablaMaker\f1utils\Auth>authenticationtest
> hacedordetabli...@gmail.co
> m 2011Formula1
> 23:42:40.6922 INFO Program[1]: authenticating,
> username='hacedordetablicas@gmail
> .com', password='2011Formula1'
> 23:42:40.7022 INFO LiveAuthenticationService[1]: fetching auth token
> from http:/
> /www.formula1.com/reg/login?redirect_url=/live_timing/for user

Piterluis RumoresF1

unread,
Mar 25, 2012, 6:35:30 PM3/25/12
to F1 Live-Timing for .NET
I resend the answer because here it doesn't appeared...

I have created a shorcut to cmd.exe... and right mouse click and "Run
as administrator". Is that enough?

I have reached directory where I have the authentication tool and I
have executed it. Here the complete history result. At the end, the
(same)error...

Microsoft Windows [Versión 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. Reservados todos los
derechos.

C:\Windows\system32>f:

F:\>cd formula1

F:\Formula1>cd tablamaker

F:\Formula1\TablaMaker>cd f1utils

F:\Formula1\TablaMaker\f1utils>connectiontest
resolving host: live-timing.formula1.com
resolved: 195.69.153.18:4321
connecting: 195.69.153.18:4321
connected
press any key to exit
F:\Formula1\TablaMaker\f1utils>cd auth

F:\Formula1\TablaMaker\f1utils\Auth>dir
 El volumen de la unidad F es Datos
 El número de serie del volumen es: 1857-DCA1

 Directorio de F:\Formula1\TablaMaker\f1utils\Auth

19/03/2012  23:39    <DIR>          .
19/03/2012  23:39    <DIR>          ..
19/03/2012  23:39           119.296 AK.F1.Timing.Core.dll
19/03/2012  23:39             5.632 AuthenticationTest.exe
19/03/2012  23:39               724 AuthenticationTest.exe.config
19/03/2012  23:39           270.336 log4net.dll
              4 archivos        395.988 bytes
              2 dirs  154.145.071.104 bytes libres

F:\Formula1\TablaMaker\f1utils\Auth>authenticationtest
usage: <username> <password>

F:\Formula1\TablaMaker\f1utils\Auth>authenticationtest
hacedordetablicas@gmail.c
om 2011Formula1
23:46:34.0815 INFO Program[1]: authenticating,
username='hacedordetablicas@gmail
.com', password='2011Formula1'
23:46:34.0915 INFO LiveAuthenticationService[1]: fetching auth token
from http:/
23:46:35.1105 ERROR LiveAuthenticationService[1]: failed to fetch the
auth token
 as no cookie named USER was found in the response to the login
request, assumin
g the credentials have been rejected
23:46:35.1825 ERROR Program[1]:
System.Security.Authentication.AuthenticationExc
eption: The supplied credentials have been rejected by the live-timing
service.
  at AK.F1.Timing.Live.LiveAuthenticationService.Login(String
username, String
password)
  at AuthenticationTest.Program.Main(String[] args)



No luck with this try.

Anyway, while we try to solve this situation, I will follow your
advise (and Alexander one) and I will try it with C#. Firstly I
onstalled a beta version of Visual Studio 2011... it is free to use
for 300 days or something like that. But I have seen that MS gives
freely Visual C# Express 2010. I have installed it and I am going to
use it. I have tried with simple apps and it seems to be easy to learn
and get familiar... we will see... :) Thanks a lot for help and
advises!

Piterluis RumoresF1

unread,
May 15, 2012, 5:36:47 PM5/15/12
to ak-f1-...@googlegroups.com
Good evening, Alexander and  F1 Looney! 

I have to say two things... F1recorder.exe is able to connect since last two GPs... at least! Yes... same version that was not able to connect when I created this thread, now, it does without problem. I do not understand. I did nothing! Just doing tests with dlls and C#, I saw I was able to connect and receive some data... and the I tried with F1recorder (I do not know why).. .and it connected!

I do not know the reason why it was not able to connect... and now it does... Maybe it was a question of spanis internet providers proxies or something like that... I don't know... But the question is that now I do not have any problem with F1recorder... 

Well... The ways of internet are inscrutable... :)

Ah! Second thing... I already told you... jejeje... Finally I followed your advise and I am learning .NET and C#... and I am getting advances... :) It is not too complicate... learning curve is quite fast... at least with basic things... but I have some doubts with dll references... I did it via "Add Reference" and adding a "using AK.F1.Timing;" at the beggining of my solution... but I do not understand at all what I did... if I did it correctly or not... If I want to use always your latests build, I do not want to re-compile the app on every build you generate, just copying the new version of dlls to a "bin" directory and that's all... I want to have relative references to the dlls.

But I understand maybe this is not the right place where I can ask about this kind of doubts... Maybe I have to find a C# forum or something like that... je, je...

Thanks a lot for your advises! :)

Ciao!

Pedro.
Message has been deleted

Александр

unread,
May 15, 2012, 7:39:21 PM5/15/12
to ak-f1-...@googlegroups.com

Hi Pedro.


> I do not know the reason why it was not able to connect...


It's just because Saturn in Cassiopeia. Don't worry. :)



>  I did it via "Add Reference" and adding a "using AK.F1.Timing;" at

> the beggining of my solution... but I do not understand at all what

> I did... if I did it correctly or not...


It's correctly. In .net all references working like a dynamic linking in C++ or Delphi.


Best please for asking questions about .net is stackoverflow.com or something like that.

See else msdn.com

Piterluis RumoresF1

unread,
May 16, 2012, 3:51:35 AM5/16/12
to ak-f1-...@googlegroups.com, Александр
Hi Alexander! And really thanks!

Jajajaa! Yes... Astral alignments in internet use to be necessary too often... jajajaa!!

And Yess. Thanks for the stackoverflow.com reference! I have accessed to that page, and I have found extly my doubt, and (seemed to be) solved. That page seems to be a very good knoledge base! Really thanks!

See you!


Piterluis RumoresF1

unread,
Jul 17, 2012, 1:09:00 PM7/17/12
to ak-f1-...@googlegroups.com, Александр
Hi again, people,

At last I could go deep into C# learning and my new attept with the dlls using and Ok... I can say that you were completely right. It is really nice to use C# & Ak-F1-Timing libs to access to Formula1 data server. Once first impact is passed with this new languaje for me, it is stupendous how the improvements go step by step. I firstly want to give you the thanks for your advises and help!

Now I am able to access to almost every kind of data message and to precess them. I still have some doubts because my C# knowledge is still low, like hot to obtain time once I use message.accept method with a string like TimeGap(Time='00:00:09,.... but ok... step by step.

Now I have one main doubt... I see I receive twice same data... first with the "key" SetGridColumnValueMessage, and after that, with different "keys" like SetDriverSectorTimeMessage, SetDriverLapTimeMessage and so on...

I wnat to do two things with my app: By one side I want to show live timing data exactly as formula1.com shows, but with some personalizations like f1 cars miniimages, minihelmets close to driver names, and so on... and by other hand, I want to store all lap times, sectors times, etc... in order to process at the end all the data and obtaind things like charts with all stints from every pilot and so on.

Which kind of "keys" should I use? Just SetGridColumnValueMessage or both, SetGridColumnValueMessage and rest of them even If I obtain duplicate data?

THanks a lot for your help and sorry fot this base doubt. 

See you!

Pedro.

Александр

unread,
Jul 24, 2012, 7:51:50 AM7/24/12
to Piterluis RumoresF1, ak-f1-...@googlegroups.com

Hi, Pedro.


Some answers for you questions.


>  hot to obtain time once I use message.accept method with a string like TimeGap(Time='00:00:09


Method Accept is using for processing messages. This is a part of the implementation Visitor pattern.

See http://en.wikipedia.org/wiki/Visitor_pattern for more information.

For access to a properties values use appropriate properties. 



>  I see I receive twice same data... first with the "key"

> SetGridColumnValueMessage, and after that, with different "keys"

> like SetDriverSectorTimeMessage, SetDriverLapTimeMessage and so on...  


SetGridColumnXXX - this is a messages about the changing grid cells.

SetDriverXXX - this is a messages about the some events related with driver (it is translation of SetGridColumnXXX).


These messages contain the same data but have a different sense.


You can use SetGridColumnXXX for grid and SetDriverXXX for storing all lap times.


Look in the Andy's application. This is already contain implementation of all what you want.

Look AK.F1.Timing.Model.


-- 

WBR,


Alexander


E-mail: alex...@povarnitsyn.ru

ICQ: 260891575


Piterluis RumoresF1

unread,
Jul 24, 2012, 5:51:26 PM7/24/12
to ak-f1-...@googlegroups.com, Piterluis RumoresF1, Александр
Hi Alexander! Thanks a lot for your answers.

Yes, Yes! I use to use Accept Method to process the messages. It is a really fast and optimal way to depure them. 

My first problems come when I use once Accept method from a overrider SetDriverXXX function inside a MessageVisitorBase builder class, and then, I obtain a new Message with a "TimeGap" function inside instead of the time directly. Should I use then a new MessageVisitorBase builder class inside the first MessageVisitorBase builder class? Welll... I think I am loosing myself in the C# learning... jajaja... 

Anyway, that just happen if I override the SetDriverXXX function... If I try to get the data just from SetGridColumnXXX functions, I obtain times directly. I think I will use always SetGridColumnXXX function, to show data and even to store it. Yes... thanks to your reply I can see that maybe SetDriverXXX functions are better to store data... but If I use just SetGridColumnXXX functions, I save process time I think...

See you and thanks!!

Pedro.

Piterluis RumoresF1

unread,
Jul 27, 2012, 6:39:26 PM7/27/12
to ak-f1-...@googlegroups.com, Piterluis RumoresF1, Александр
Hi again, Alexander,

Don't worry about my last message. Ok... I have just notice that ok, I obtain a message with a "TimeGap" inside... but I did not kbow I can simply access to the time just accesing to the properties of "LapTime"... Really easy to do... I thought I should re-process again the obtained message. From time to time solutions are easier to get as we think. Now I am able to see the power of SetDriverXXX functions and of course I will follw your advise and I will use them to store data.

Really thanks!!

Pedro.
Reply all
Reply to author
Forward
0 new messages