Annoying Excption [401] while posting online

  • Author
  • #1339263


    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 = “” 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

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

    Url = “”;
    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);

    The blog I need help with is



    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.

The topic ‘Annoying Excption [401] while posting online’ is closed to new replies.