Need help? Check out our Support site, then


Annoying Excption [401] while posting online

  1. 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 exception:
    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);

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

  2. Hi there, could you please let me know the purpose of using this specific script to post to the site? Thanks.

    p.s. this is a public forum so I'm removing your password and suggest you change it as soon as possible.

Topic Closed

This topic has been closed to new replies.

About this Topic