abrudtkuhl / WordPressSharp

A C# client to to interact with the WordPress XML-RPC API
abrudtkuhl.github.io/WordPressSharp/
GNU General Public License v3.0
103 stars 49 forks source link

CookComputing.XmlRpc.XmlRpcInvalidXmlRpcException: Response XML not valid XML-RPC – root element not methodResponse. #74

Open vnlinkorg opened 6 years ago

vnlinkorg commented 6 years ago

I’ve tried to use GetPosts()

public List GetPosts(int PageNumber) { using (var client = CreateWordPressClient()) { var result = client.GetPosts(new PostFilter { PostType = “post”, PostStatus = “publish”, Number = PageNumber }).OrderByDescending(a => a.Id).ToList(); return result; } }

and:

dgvwPost.DataSource = myWordPressAPI.GetPosts(NumberPostView);

Please help me!

GeHertz commented 6 years ago

Got the same problem, but not only with GetPosts(), i also got this exception when using GetUsers(). And this exception occurs only when another running thread using HttpWebRequest

Blackcat156 commented 6 years ago

I also encountered this problem, but this problem will happen only when the server starts up for the first time using XMLRPC.