Cannot get torrents list

Jun 22, 2013 at 1:29 PM
Hi,

I'm writing a C# winforms application. First thing I'd like to do is retrieve the list of all torrents in my client (that is running on the same machine as my application).

Here's what I've done:
UTorrentClient client = new UTorrentClient(new System.Uri("http://127.0.0.1:11111/gui/"), "admin", "password");
Debug.WriteLine(client.Torrents.Count);
That does not work, I get a ArgumentOutOfRange exception on the Count property as there is no item in the TorrentCollection.

I have correctly enabled the Web UI on µTorrent (I can access it on Firefox via http://127.0.0.1:11111/gui ), so I'm not sure what I'm doing wrong here. Do you have an idea?
Coordinator
Oct 20, 2013 at 6:30 AM
What version of uTorrent are you using? Are there any exceptions thrown that are being swallowed on non-main threads, etc?
Oct 20, 2013 at 8:29 PM
I'm using µTorrent 2.2.1.

I didn't see any raised exception, so I don't think so.
Coordinator
Oct 22, 2013 at 5:14 AM
Edited Oct 22, 2013 at 5:21 AM
Unfortunately there are currently issues with supporting uTorrent 2.x because the properties are so different. I need to refactor the code to be much more flexible during deserialization. Tracked with [workitem:6].
Oct 22, 2013 at 12:16 PM
Ok, thanks for your reply.