WordPressSharp
WordPressSharp copied to clipboard
Getting CookComputing.XmlRpc.XmlRpcServerException 'Not Acceptable' exception
I've been using WordPresSharp for some time now.
When this method is called I get this CookComputing.XmlRpc.XmlRpcServerException 'Not Acceptable' thrown.
var client = new WordPressClient(new WordPressSiteConfig
{
BaseUrl = this.BaseUrl,
Username = this.Username,
Password = this.Password,
BlogId = 1
});
var categories = client.GetTerms("category", new TermFilter());
CookComputing.XmlRpcV2 reference is Runtime Version: v2.0.50727 and Version: 3.0.0.0. How can I fix this?
I upgraded my blog to the latest version and the method client.GetTerms() worked once. Then I tried it again, and get the same exception message 'Not Acceptable'.
Oddly I have the same version of the code on another blog and it works all the time without getting that exception.
This exception has only surfaced on these 2 blogs in the last couple days and has been working fine. At a total loss why the exception is being thrown.
Any ideas?
Thanks, Glenn