如何在.NET下使用MetaWeBlog API迁移博客

简介: 新建了个网站,想把之前所有的博客都迁移过去。 学习进行的很顺利,就在我开始测试另外一个博客vwww.aboutdnn.net时,一个错误出现了: 服务器总是报告"Conversion from string "" to type 'Integer' is not valid",对于这个出错,我很是费...

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

学习进行的很顺利,就在我开始测试另外一个博客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

相关文章
|
8月前
|
开发框架 .NET 中间件
Swagger的 ASP.NET Core Web API 帮助页
使用 Web API 时,了解其各种方法对开发人员来说可能是一项挑战。 Swagger 也称为OpenAPI,解决了为 Web API 生成有用文档和帮助页的问题。 它具有诸如交互式文档、客户端 SDK 生成和 API 可发现性等优点。
70 0
|
8月前
|
开发框架 JSON .NET
使用 ASP.NET Core 创建 Web API系列
使用 ASP.NET Core 创建 Web API系列
165 0
|
9月前
|
安全 API 开发者
让IIS支持.NET Web Api PUT和DELETE请求
让IIS支持.NET Web Api PUT和DELETE请求
|
9月前
|
开发框架 JSON 算法
ASP.NET Core Web API之Token验证
ASP.NET Core Web API之Token验证
145 0
|
9月前
|
开发框架 JSON 前端开发
ASP.NET Web API入门介绍(一)
ASP.NET Web API入门介绍(一)
124 0
|
10月前
|
SQL JavaScript 前端开发
【Node.js实战】一文带你开发博客项目(API 对接 MySQL)
【Node.js实战】一文带你开发博客项目(API 对接 MySQL)
113 0
|
Ubuntu IDE 前端开发
把.Net开发环境迁移到Linux上去
把.Net开发环境迁移到Linux上去
219 0
|
JavaScript API
Vue2.js迁移到Vue3.js的API变化
Vue2.js迁移到Vue3.js的API变化
41 0
|
XML 存储 Shell
快学会这个技能-.NET API拦截技法
怎么在不改变源码的情况下,篡改一个方法的入参?伪造返回结果?
|
开发框架 JSON 前端开发
6.3 ASP.NET Core Web API技术选择
ASP.NET Core Web API技术选择
6.3 ASP.NET Core Web API技术选择