Annoying Excption [401] while posting online (2 posts)

  1. starshahid20
    Posted 2 years ago #

    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;
    wrapper.NewPost(post, true);
    catch (CookComputing.XmlRpc.XmlRpcFaultException ex)
    MessageBox.Show(post.PostID + ", " + post.Permalink);

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

    For help with WordPress.COM sites, you need to be here:


    These forums are for self-hosted WP.ORG sites.

Topic Closed

This topic has been closed to new replies.

About this Topic