SDK .NET: input string was not in a correct format

Trackmania Forever public API and its open source PHP SDK.

Moderator: NADEO

Post Reply
Memphiz112
Posts: 5
Joined: 27 Jun 2011, 14:28

SDK .NET: input string was not in a correct format

Post by Memphiz112 » 27 Jun 2011, 14:34

Hi all,

I'm struggling a bit to get the web services working with C#...
I'm trying to start from the very beginning by using MultiplayerRankingService.

Code: Select all

MultiplayerRankingService mrs;
private void btShow_Click(object sender, EventArgs e)
        {
            mrs = new MultiplayerRankingService("username", "password");
            mrs.GetPlayerRanking();
        }
with only this i get the error "input string was not in a correct format"
And because there is little to no information on the internet about this, i don't really know where to start of correctly...

Hope you can help me :)

User avatar
farfa
Nadeo
Nadeo
Posts: 597
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: SDK .NET: input string was not in a correct format

Post by farfa » 27 Jun 2011, 15:45

Thanks, for the report. It's due to some string format mistake. I'm working on it, and I'll correct this.
Also known as: satanasdiabolo

Memphiz112
Posts: 5
Joined: 27 Jun 2011, 14:28

Re: SDK .NET: input string was not in a correct format

Post by Memphiz112 » 28 Jun 2011, 10:00

Thanks ;)

User avatar
farfa
Nadeo
Nadeo
Posts: 597
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: SDK .NET: input string was not in a correct format

Post by farfa » 28 Jun 2011, 14:43

It's now corrected, you can download the new dll on codeplex ;)

http://trackmaniawssdk.codeplex.com/
Also known as: satanasdiabolo

Memphiz112
Posts: 5
Joined: 27 Jun 2011, 14:28

Re: SDK .NET: input string was not in a correct format

Post by Memphiz112 » 29 Jun 2011, 07:29

You're THE man! :lol:
thanks :)

Memphiz112
Posts: 5
Joined: 27 Jun 2011, 14:28

Re: SDK .NET: input string was not in a correct format

Post by Memphiz112 » 29 Jun 2011, 11:13

I hope i'm not annoying, but i have another problem :roll:

It seems like i can't make large request.. is this a restriction on the remote server (i guess it is)?
Error:
The remote server returned an error: (400) Bad Request.
This happens when i do this for example:

Code: Select all

mrs.GetPlayerRanking("World", "Merge", 0, 100).players[i].player.login;
EDIT: i see now i can't make requests with a length longer than 10

User avatar
farfa
Nadeo
Nadeo
Posts: 597
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: SDK .NET: input string was not in a correct format

Post by farfa » 29 Jun 2011, 11:25

indeed, you can only get 10 results on this method.
Also known as: satanasdiabolo

Memphiz112
Posts: 5
Joined: 27 Jun 2011, 14:28

Re: SDK .NET: input string was not in a correct format

Post by Memphiz112 » 29 Jun 2011, 11:30

ok, thanks for the info ;)

Post Reply

Return to “Trackmania Forever Web Services”

Who is online

Users browsing this forum: No registered users and 1 guest