Discussion:
[Mono-list] CookComputing.XmlRpc, Mono, & .NET 2.0
Adam Tauno Williams
2007-05-23 17:09:43 UTC
Permalink
I've been using this XML-RPC assembly [ http://www.xml-rpc.net/ ] with
Mono for a long time, but always under a .NET 1.1 profile.

Now I need to build my application as .NET 2.0 - everything still
compiles and the application starts... but authentication fails. It
always acts like I have provided no credentials.

I'm doing -
proxy = (IProxy)XmlRpcProxyGen.Create(typeof(Whitemice.ZOGI.IProxy));
client = (XmlRpcClientProtocol)proxy;
client.ProtocolVersion = HttpVersion.Version10;
client.PreAuthenticate = true;
client.Timeout = 1800000;
client.Credentials = new NetworkCredential(_username, _password);
client.Url = "http://" + _hostname + "/zidestore/so/" + _username + "/";
- just like under the .NET 1.1 profile. But getting an authentication
required exception when I make a request.

Anyone seen this, or tried CookComputing.XmlRpcV2.dll under Mono with
a .NET 2.0 proile?
Adam Tauno Williams
2007-05-27 01:00:29 UTC
Permalink
Post by Adam Tauno Williams
Anyone seen this, or tried CookComputing.XmlRpcV2.dll under Mono with
a .NET 2.0 proile?
I really have no experience with CookComputing.XmlRpc, but I think
that's a bug I recognize. If it is using System.Net for authentication
(most likely) then you wouldn't be able to authenticate under Mono 1.2.3
with Runtime 2.0. I saw the exact same thing in gTwitter when I compiled
it with gmcs (Runtime 2.0 compiler).
You should be using Mono 1.2.4, as it's believed that this is no longer
http://unethicalblogger.com/posts/tyler/twitterbot_basic_http_authentication_errors
Yep, bumping Mono up to 1.2.4 fixed the problem.

Loading...