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 »

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 :)
farfa
Nadeo
Nadeo
Posts: 601
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 »

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 »

Thanks ;)
farfa
Nadeo
Nadeo
Posts: 601
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 »

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 »

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 »

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
farfa
Nadeo
Nadeo
Posts: 601
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 »

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 »

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