zoukankan      html  css  js  c++  java
  • 如何在.NET下使用MetaWeBlog API迁移博客

    新建了个网站,想把之前所有的博客都迁移过去。

    学习进行的很顺利,就在我开始测试另外一个博客vwww.aboutdnn.net时,一个错误出现了:

    服务器总是报告"Conversion from string "" to type 'Integer' is not valid",对于这个出错,我很是费解,一样的代码,为什么换了一个博客就开始出问题呢?Rich Strahl 的一篇文章解答了我的问题: 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

    这里有一个library:

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

    Joe Blogs

    在codeplex上也有一个:Joe Blogs

    这个library完整的实现了对WordPress 的API,同时也支持MetaWeblog API,所以也可以用来处理MetaWeblog API

    这里是的使用说明:http://www.alexjamesbrown.com/geek/development/dotnet/using-joeblogs/

    Migrating content from MovableType or TypePad to Drupal with Python

  • 相关阅读:
    java添加后台缓存
    Acunetix WVS安全测试软件使用教程(入门级)
    spring mvc + ajax上传文件,页面局部刷新
    github新手使用教程
    Junit使用方法
    反射(动态代理)
    TCP--文件上传
    网络编程--UDP通讯
    线程实现计时器,多线程间通信
    序列流
  • 原文地址:https://www.cnblogs.com/DotNetNuke/p/1537674.html
Copyright © 2011-2022 走看看