• Hi,
    I am new to joeblogs wordpress api and when i ran my sample program on my localhost, it went fine but when i used online address as Url = “http://dustysstory.wordpress.com/xmlrpc.php” to post on my wordpress blog, it generated an error:
    An unhandled exception of type ‘CookComputing.XmlRpc.XmlRpcFaultException’ occurred in CookComputing.XmlRpcV2.dll

    Additional information: Server returned a fault exception: [401] Sorry, you are not allowed to publish posts on this site.

    Please let me know what could i do to resolve this????????

    The blog I need help with is starshahid20.wordpress.com.

    My code is:
    `titleString = “”;
    postString = “”;

    Url = “http://dustysstory.wordpress.com/xmlrpc.php”;
    Username = “starshahid20”;
    Password = “aeroplane22”;

    WordPressWrapper wrapper = new WordPressWrapper(Url, Username, Password);
    //MetaWeblogWrapper wrapper = new MetaWeblogWrapper(Url, Username, Password);
    Post post = new Post();
    post.Body = richTextBox1.Text;
    post.Title = textBox1.Text;
    post.DateCreated = DateTime.Now;
    try
    {
    wrapper.NewPost(post, true);
    }
    catch (CookComputing.XmlRpc.XmlRpcFaultException ex)
    {
    MessageBox.Show(ex.Message.ToString());
    }
    MessageBox.Show(post.PostID + “, ” + post.Permalink);

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Annoying Excption [401] while posting online’ is closed to new replies.