Page 1 of 1

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

Posted: 27 Jun 2011, 14:34
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 :)

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

Posted: 27 Jun 2011, 15:45
by farfa
Thanks, for the report. It's due to some string format mistake. I'm working on it, and I'll correct this.

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

Posted: 28 Jun 2011, 10:00
by Memphiz112
Thanks ;)

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

Posted: 28 Jun 2011, 14:43
by farfa
It's now corrected, you can download the new dll on codeplex ;)

http://trackmaniawssdk.codeplex.com/

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

Posted: 29 Jun 2011, 07:29
by Memphiz112
You're THE man! :lol:
thanks :)

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

Posted: 29 Jun 2011, 11:13
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

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

Posted: 29 Jun 2011, 11:25
by farfa
indeed, you can only get 10 results on this method.

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

Posted: 29 Jun 2011, 11:30
by Memphiz112
ok, thanks for the info ;)