How to Use MetaWeBlog API to migrate a blog under. NET

Source: Internet
Author: User

You have created a new website and want to migrate all previous blogs.

When I started testing another blog vwww.aboutdnn.net, an error occurred:

The server always reports "Conversion from string" "to type 'integer' is not valid". For this error, I am very puzzled. The same code, why does a problem occur when I change my blog? Rich Strahl's article answers my question: MetaWebLog API and Blog Writers

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box. 
 
************** Exception Text **************
CookComputing.XmlRpc.XmlRpcFaultException: Server returned a fault exception: [0] Conversion from string "" to type 'Integer' is not valid.
   at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(XmlDocument xdoc, Type returnType)
   at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(Stream stm, Type svcType)
   at CookComputing.XmlRpc.XmlRpcClientProtocol.ReadResponse(XmlRpcRequest req, WebResponse webResp, Stream respStm, Type returnType)
   at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(Object clientObj, MethodInfo mi, Object[] parameters)
   at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(MethodInfo mi, Object[] Parameters)
   at XmlRpcProxy16e9c151-0058-43cc-ab6c-b59358b72772.NewPost(String , String , String , Post , Boolean )
   at AlexJamesBrown.JoeBlogs.MetaWeblogWrapper.NewPost(Post content, Boolean publish)
   at BlogMigrator.Form1.button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\NL186000\My Documents\Visual Studio 2008\Projects\BlogMigrator\BlogMigrator\Form1.cs:line 40
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Plurals Light

Here is a library:

Http://www.pluralsight.com/community/blogs/aaron/archive/2008/08/19/programming-the-metaweblog-api-in-net-c.aspx

Joe Blogs

There is also one on codeplex: Joe Blogs

This library fully implements the WordPress API and also supports the MetaWeblog API, so it can also be used to process the MetaWeblog API

Here is the instructions for use: http://www.alexjamesbrown.com/geek/development/dotnet/using-joeblogs/

 

Migrating content from MovableType or TypePad to Drupal with Python

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.